in scala/collection/mutable
class BitSet

class BitSet(initSize: Int)
extends BitSet
with ScalaObject

mutable, resizable bit sets, to represent dense sets of small integers Bit indices are between 0..(size-1) inclusive
Author:
Burak Emir
Parameters:
initSize: - initial size in nbits

Field Summary
protected val internal: ByteArray

Method Summary
  def apply(i: Int): Boolean
     gets i-th bit.
  def clear(i: Int): Unit
     clears i-th bit.
  def ensureSize(n: Int): Unit
     ensure that this bitset can store at least nbits bits
  def makeImmutable: BitSet
final def set(i: Int, b: Boolean): Unit
     calls set or clear for i-th bit
final def set(i: Int): Unit
     sets i-th bit to true.
  var size: Int
     size of this bitset in nbytes
  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/ScalaObject-class
getScalaType

Methods inherited from scala/collection/BitSet-class
booleanElements, equals, foreach, memsize, toSet, toString

Class Summary
  class ByteArray()

Field Detail

internal

  protected val internal: ByteArray
Method Detail

size

  var size: Int
size of this bitset in nbytes

ensureSize

  def ensureSize(n: Int): Unit
ensure that this bitset can store at least nbits bits

set

  final def set(i: Int, b: Boolean): Unit
calls set or clear for i-th bit

set

  final def set(i: Int): Unit
sets i-th bit to true. Grows to size i+1 if needed.

clear

  def clear(i: Int): Unit
clears i-th bit. Grows to size i+1 if needed.

apply

  def apply(i: Int): Boolean
gets i-th bit. Grows to size i+1 if needed.

toArray

  def toArray: Array[Int]

makeImmutable

  def makeImmutable: BitSet