in scala/collection/immutable
class BitSet

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

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
  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

array

  protected val array: Array[Int]
Method Detail

compareTo

  def compareTo[b >: BitSet](view: (b) => Ordered[b])(other: b): Int
lexicographic ordering

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 -

makeMutable

  def makeMutable: BitSet

toArray

  def toArray: Array[Int]