|
Scala
1.3.0.7 |
|||
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. |
abstract
|
def makeImmutable: BitSet
returns an immutable bitset with same information |
abstract
|
def makeMutable: BitSet
returns a mutable bitset with same information |
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, notify, notifyAll, synchronized, wait, wait, wait |
Methods inherited from scala/Any-class |
!=, ==, asInstanceOf, isInstanceOf, match |
Methods inherited from scala/ScalaObject-class |
getType |
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
abstract def makeImmutable: BitSet
abstract def makeMutable: BitSet
override def toString(): String
protected def memsize(n: Int): Int
|
Scala
1.3.0.7 |
|||