|
Scala
1.4.0.3 |
|||
BitSet
provides an immutable bitset view on an
int array. Instances can conveniently be created from instances of
mutable.ResizableBitSet
. Bit indices are between 0..(size-1) inclusive
n
-
represents the number of relevant bits
ba:
-
array of ints of length n
>>>5
copy:
-
if yes, then ba
is copied and updates will
not affect this bitset
Field Summary | |
protected
|
val array: Array[Int]
|
Method Summary | |
def apply(i: Int): Boolean
returns true if bit i is set |
|
def compareTo[b >: BitSet](view: (b) => Ordered[b])(other: b): Int
lexicographic ordering |
|
override
|
def equals(that: Any): Boolean
Checks if two bitsets are structurally identical. |
def makeMutable: BitSet
|
|
final
|
def size: Int
number of bits in this bitset |
def toArray: Array[Int]
|
Methods inherited from java/lang/Object-class |
clone, eq, finalize, getClass, hashCode, ne, notify, notifyAll, synchronized, wait, wait, wait |
Methods inherited from scala/Any-class |
!=, ==, asInstanceOf, isInstanceOf, match |
Methods inherited from scala/Ordered-class |
<, <=, >, >= |
Methods inherited from scala/ScalaObject-class |
getScalaType |
Methods inherited from scala/collection/BitSet-class |
booleanElements, foreach, memsize, toSet, toString |
Field Detail |
protected val array: Array[Int]
Method Detail |
def compareTo[b >: BitSet](view: (b) => Ordered[b])(other: b): Int
final def size: Int
override def equals(that: Any): Boolean
def apply(i: Int): Boolean
i
-
def makeMutable: BitSet
def toArray: Array[Int]
|
Scala
1.4.0.3 |
|||