scala.collection.immutable.BitSet

BitSet1

class BitSet1 extends BitSet

Inherits

  1. BitSet
  2. BitSet
  3. BitSetLike
  4. Set
  5. Set
  6. SetLike
  7. Subtractable
  8. Addable
  9. GenericSetTemplate
  10. Function1
  11. Iterable
  12. Iterable
  13. IterableLike
  14. Equals
  15. Traversable
  16. Immutable
  17. Traversable
  18. GenericTraversableTemplate
  19. TraversableLike
  20. HasNewBuilder
  21. AnyRef
  22. Any

Type Members

  1. class WithFilter extends AnyRef

    A class supporting filtered operations

Value Members

  1. def &(other: BitSet): BitSet

    Computes the intersection between this bitset and another bitset by performing a bitwise "and"

  2. def &(that: Set[Int]): BitSet

    Computes the intersection between this set and another set

  3. def &~(other: BitSet): BitSet

    Computes the difference of this bitset and another bitset by performing a bitwise "and-not"

  4. def &~(that: Set[Int]): BitSet

    The difference of this set and another set

  5. def **(that: Set[Int]): BitSet

    This method is an alias for intersect

  6. def +(elem: Int): BitSet

    Adds element to bitset, returning a new set

  7. def +(elem1: Int, elem2: Int, elems: Int*): BitSet

    Creates a new bitset with additional elements

  8. def ++(iter: Iterator[Int]): BitSet

    Creates a new bitset by adding all elements produced by an iterator to this bitset

  9. def ++(elems: Traversable[Int]): BitSet

    Creates a new bitset by adding all elements contained in another collection to this bitset

  10. def ++[B >: Int, That](that: Iterator[B])(bf: CanBuildFrom[BitSet, B, That]): That

    Concatenates this bitset with the elements of an iterator

  11. def ++[B >: Int, That](that: Traversable[B])(bf: CanBuildFrom[BitSet, B, That]): That

    Concatenates this bitset with the elements of a traversable collection

  12. def -(elem: Int): BitSet

    Removes element from bitset, returning a new set

  13. def -(elem1: Int, elem2: Int, elems: Int*): BitSet

    Creates a new bitset from this bitset with some elements removed

  14. def --(iter: Iterator[Int]): BitSet

    Creates a new bitset from this bitset by removing all elements produced by an iterator

  15. def --(elems: Traversable[Int]): BitSet

    Creates a new bitset from this bitset by removing all elements of another collection

  16. def /:[B](z: B)(op: (B, Int) ⇒ B): B

    Applies a binary operator to a start value and all elements of this bitset, going left to right

  17. def :\[B](z: B)(op: (Int, B) ⇒ B): B

    Applies a binary operator to all elements of this bitset and a start value, going right to left

  18. def ^(other: BitSet): BitSet

    Computes the symmetric difference of this bitset and another bitset by performing a bitwise "exclusive-or"

  19. def addString(sb: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Appends all elements of this bitset to a string builder using start, end, and separator strings

  20. def addString(b: StringBuilder): StringBuilder

    Appends all elements of this bitset to a string builder

  21. def addString(b: StringBuilder, sep: String): StringBuilder

    Appends all elements of this bitset to a string builder using a separator string

  22. def andThen[A](g: (Boolean) ⇒ A): (Int) ⇒ A

    (f andThen g)(x) == g(f(x))

  23. def apply(elem: Int): Boolean

    Tests if some element is contained in this set

  24. def canEqual(that: Any): Boolean

    Method called from equality methods, so that user-defined subclasses can refuse to be equal to other collections of the same kind

  25. def companion: GenericCompanion[Set[A][A]]

    The factory companion object that builds instances of class BitSet define bitsetinfo Bitsets are sets of non-negative integers which are represented as variable-size arrays of bits packed into 64-bit words

  26. def compose[A](g: (A) ⇒ Int): (A) ⇒ Boolean

    (f compose g)(x) == f(g(x))

  27. def contains(elem: Int): Boolean

    Tests if some element is contained in this set

  28. def copyToArray[B >: Int](xs: Array[B], start: Int, len: Int): Unit

    Copies elements of this bitset to an array

  29. def copyToArray[B >: Int](xs: Array[B]): Unit

    Copies elements of this bitset to an array

  30. def copyToArray[B >: Int](xs: Array[B], start: Int): Unit

    Copies elements of this bitset to an array

  31. def copyToBuffer[B >: Int](dest: Buffer[B]): Unit

    Copies all elements of this bitset to a buffer

  32. def count(p: (Int) ⇒ Boolean): Int

    Counts the number of elements in the bitset which satisfy a predicate

  33. def diff(that: Set[Int]): BitSet

    Computes the difference of this set and another set

  34. def drop(n: Int): BitSet

    Selects all elements except first n ones

  35. def dropRight(n: Int): BitSet

    Selects all elements except first n ones

  36. def dropWhile(p: (Int) ⇒ Boolean): BitSet

    Drops longest prefix of elements that satisfy a predicate

  37. def elements: Iterator[Int]

  38. val elems: Long

  39. def empty: BitSet

  40. def equals(that: Any): Boolean

    Compares this set with another object for equality

  41. def exists(p: (Int) ⇒ Boolean): Boolean

    Tests whether a predicate holds for some of the elements of this bitset

  42. def filter(p: (Int) ⇒ Boolean): BitSet

    Selects all elements of this bitset which satisfy a predicate

  43. def filterNot(p: (Int) ⇒ Boolean): BitSet

    Selects all elements of this bitset which do not satisfy a predicate

  44. def find(p: (Int) ⇒ Boolean): Option[Int]

    Finds the first element of the bitset satisfying a predicate, if any

  45. def first: Int

  46. def firstOption: Option[Int]

    None if iterable is empty

  47. def flatMap[B, That](f: (Int) ⇒ Traversable[B])(bf: CanBuildFrom[BitSet, B, That]): That

    Builds a new collection by applying a function to all elements of this bitset and concatenating the results

  48. def flatten[B](asTraversable: (Int) ⇒ Traversable[B]): Set[B]

    Converts this bitset of traversable collections into a bitset in which all element collections are concatenated

  49. def foldLeft[B](z: B)(op: (B, Int) ⇒ B): B

    Applies a binary operator to a start value and all elements of this bitset, going left to right

  50. def foldRight[B](z: B)(op: (Int, B) ⇒ B): B

    Applies a binary operator to all elements of this bitset and a start value, going right to left

  51. def forall(p: (Int) ⇒ Boolean): Boolean

    Tests whether a predicate holds for all elements of this bitset

  52. def foreach[B](f: (Int) ⇒ B): Unit

    Applies a function f to all elements of this bitset

  53. def fromArray(elems: Array[Long]): BitSet

    Creates a new set of this kind from an array of longs

  54. def genericBuilder[B]: Builder[B, Set[B]]

    The generic builder that builds instances of BitSet define bitsetinfo Bitsets are sets of non-negative integers which are represented as variable-size arrays of bits packed into 64-bit words

  55. def groupBy[K](f: (Int) ⇒ K): Map[K, BitSet]

    Partitions this bitset into a map of bitsets according to some discriminator function

  56. def hasDefiniteSize: Boolean

    Tests whether this bitset is known to have a finite size

  57. def hashCode(): Int

    Returns a hash code value for the object

  58. def head: Int

    Selects the first element of this bitset

  59. def headOption: Option[Int]

    Optionally selects the first element

  60. def init: BitSet

    Selects all elements except the last

  61. def intersect(that: Set[Int]): BitSet

    Computes the intersection between this set and another set

  62. def isEmpty: Boolean

    Tests if this set is empty

  63. def iterator: Iterator[Int]

    Creates a new iterator over all elements contained in this iterable object

  64. def last: Int

    Selects the last element

  65. def lastOption: Option[Int]

    Optionally selects the last element

  66. def map[B, That](f: (Int) ⇒ B)(bf: CanBuildFrom[BitSet, B, That]): That

    Builds a new collection by applying a function to all elements of this bitset

  67. def max[B >: Int](cmp: Ordering[B]): Int

    Finds the largest element

  68. def min[B >: Int](cmp: Ordering[B]): Int

    Finds the smallest element

  69. def mkString: String

    Displays all elements of this bitset in a string

  70. def mkString(sep: String): String

    Displays all elements of this bitset in a string using a separator string

  71. def mkString(start: String, sep: String, end: String): String

    Displays all elements of this bitset in a string using start, end, and separator strings

  72. def nonEmpty: Boolean

    Tests whether the bitset is not empty

  73. def partialMap[B, That](pf: PartialFunction[Int, B])(bf: CanBuildFrom[BitSet, B, That]): That

    Builds a new collection by applying a partial function to all elements of this bitset on which the function is defined

  74. def partition(p: (Int) ⇒ Boolean): (BitSet, BitSet)

    Partitions this bitset in two bitsets according to a predicate

  75. def product[B >: Int](num: Numeric[B]): B

    Multiplies up the elements of this collection

  76. def projection: IterableView[Int, BitSet]

    returns a projection that can be used to call non-strict filter,map, and flatMap methods that build projections of the collection

  77. def reduceLeft[B >: Int](op: (B, Int) ⇒ B): B

    Applies a binary operator to all elements of this bitset, going left to right

  78. def reduceLeftOption[B >: Int](op: (B, Int) ⇒ B): Option[B]

    Optionally applies a binary operator to all elements of this bitset, going left to right

  79. def reduceRight[B >: Int](op: (Int, B) ⇒ B): B

    Applies a binary operator to all elements of this bitset, going right to left

  80. def reduceRightOption[B >: Int](op: (Int, B) ⇒ B): Option[B]

    Optionally applies a binary operator to all elements of this bitset, going right to left

  81. def repr: BitSet

    The collection of type bitset underlying this TraversableLike object

  82. def sameElements[B >: Int](that: Iterable[B]): Boolean

    Checks if the other iterable collection contains the same elements in the same order as this bitset

  83. def size: Int

    The size of this bitset

  84. def slice(from: Int, until: Int): BitSet

    Selects an interval of elements

  85. def span(p: (Int) ⇒ Boolean): (BitSet, BitSet)

    Spits this bitset into a prefix/suffix pair according to a predicate

  86. def splitAt(n: Int): (BitSet, BitSet)

    Splits this bitset into two at a given position

  87. def stringPrefix: String

    Defines the prefix of this object's toString representation

  88. def subsetOf(other: BitSet): Boolean

    Tests whether this bitset is a subset of another bitset

  89. def subsetOf(that: Set[Int]): Boolean

    Tests whether this set is a subset of another set

  90. def sum[B >: Int](num: Numeric[B]): B

    Sums up the elements of this collection

  91. def tail: BitSet

    Selects all elements except the first

  92. def take(n: Int): BitSet

    Selects first n elements

  93. def takeRight(n: Int): BitSet

    Selects last n elements

  94. def takeWhile(p: (Int) ⇒ Boolean): BitSet

    Takes longest prefix of elements that satisfy a predicate

  95. def toArray[B >: Int](arg0: ClassManifest[B]): Array[B]

    Converts this bitset to an array

  96. def toIndexedSeq[B >: Int]: IndexedSeq[B]

    Converts this bitset to an indexed sequence

  97. def toIterable: Iterable[Int]

    Converts this bitset to an iterable collection

  98. def toList: List[Int]

    Converts this bitset to a list

  99. def toSeq: Seq[Int]

    Converts this bitset to a sequence

  100. def toSet[B >: Int]: Set[B]

    Converts this bitset to a set

  101. def toStream: Stream[Int]

    Converts this bitset to a stream

  102. def toString(): String

    Converts this bitset to a string

  103. def transpose[B](asTraversable: (Int) ⇒ Traversable[B]): Set[Set[B]]

    Transposes this bitset of traversable collections into

  104. def union(that: Set[Int]): BitSet

    Computes the union between of set and another set

  105. def unzip[A1, A2](asPair: (Int) ⇒ (A1, A2)): (Set[A1], Set[A2])

    Converts this bitset of pairs into two collections of the first and second halfs of each pair

  106. def view(from: Int, until: Int): IterableView[Int, BitSet]

    Creates a non-strict view of a slice of this bitset

  107. def view: IterableView[Int, BitSet]

    Creates a non-strict view of this bitset

  108. def withFilter(p: (Int) ⇒ Boolean): WithFilter

    Creates a non-strict filter of this bitset

  109. def zip[A1 >: Int, B, That](that: Iterable[B])(bf: CanBuildFrom[BitSet, (A1, B), That]): That

    Returns a bitset formed from this bitset and another iterable collection by combining corresponding elements in pairs

  110. def zipAll[B, A1 >: Int, That](that: Iterable[B], thisElem: A1, thatElem: B)(bf: CanBuildFrom[BitSet, (A1, B), That]): That

    Returns a bitset formed from this bitset and another iterable collection by combining corresponding elements in pairs

  111. def zipWithIndex[A1 >: Int, That](bf: CanBuildFrom[BitSet, (A1, Int), That]): That

    Zips this bitset with its indices

  112. def |(other: BitSet): BitSet

    Computes the union between this bitset and another bitset by performing a bitwise "or"

  113. def |(that: Set[Int]): BitSet

    Computes the union between this set and another set

Instance constructors

  1. new BitSet1(elems: Long)

  2. new BitSet1()