in scala/collection/immutable
class BitSet

class BitSet(n: Int, ba: Array[Int], copy: Boolean)
extends BitSet
with ScalaObject

The class BitSetprovides 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
Author:
Burak Emir
Version:
1.0
Parameters:
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
override def equals(that: Any): Boolean
     Checks if two bitsets are structurally identical.
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, notify, notifyAll, synchronized, wait, wait, wait

Methods inherited from scala/Any-class
!=, ==, asInstanceOf, isInstanceOf, match

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

Field Detail

array

  protected val array: Array[Int]
Method Detail

size

  final def size: Int
number of bits in this bitset

equals

  override def equals(that: Any): Boolean
Checks if two bitsets are structurally identical.
Returns:
true, iff both bitsets contain the same sequence of elements.

apply

  def apply(i: Int): Boolean
returns true if bit i is set
Parameters:
i -

toArray

  def toArray: Array[Int]