|
Scala
1.4.0.3 |
|||
BitSet
...
Method Summary | |
abstract
|
def apply(i: Int): Boolean
returns true if bit i is set |
final
|
def booleanElements: Iterator[Boolean]
returns an iterator over the truth values of all bits |
override
|
def equals(that: Any): Boolean
Checks if two bitsets are structurally identical. |
def foreach(f: (Int) => Unit): Unit
applies f to any index which is set to true. |
|
protected
|
def memsize(n: Int): Int
returns number of Int cells needed to store n bits |
abstract
|
def size: Int
number of bits in this bitset |
final
|
def toSet(v: Boolean): TreeSet[Int]
Returns the subset of [0..size] whose elements are
indices of bits set to v .
|
override
|
def toString(): String
Returns a string representation of this bitset in hexadecimal form, e.g. |
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/ScalaObject-class |
getScalaType |
Method Detail |
abstract def size: Int
abstract def apply(i: Int): Boolean
final def booleanElements: Iterator[Boolean]
final def toSet(v: Boolean): TreeSet[Int]
[0..size]
whose elements are
indices of bits set to v
.
v
-
override def equals(that: Any): Boolean
def foreach(f: (Int) => Unit): Unit
override def toString(): String
protected def memsize(n: Int): Int
|
Scala
1.4.0.3 |
|||