scala.collection.immutable

class BitSet

[source: scala/collection/immutable/BitSet.scala]

abstract class BitSet
extends Set[Int] with BitSet with BitSetTemplate[BitSet]
a base class for immutable bit sets
Direct Known Subclasses:
BitSet.BitSet1, BitSet.BitSet2, BitSet.BitSetN

Method Summary
def + (elem : Int) : BitSet
Adds element to bitset, returning a new set.
def - (elem : Int) : BitSet
Removes element from bitset, returning a new set
override def empty : BitSet
def fromArray (elems : Array[Long]) : BitSet
Create a new set of this kind from an array of longs
protected abstract def updateWord (idx : Int, w : Long) : BitSet
Update word at index `idx`; enlarge set if `idx` outside range of set
Methods inherited from BitSetTemplate
nwords (abstract), word (abstract), size, iterator, foreach, |, &, &~, ^, contains, subSet, addString
Methods inherited from Set
companion, hashCode
Methods inherited from SetTemplate
newBuilder, isEmpty, apply, intersect, &, **, union, |, diff, &~, subsetOf, equals, stringPrefix, toString
Methods inherited from Subtractable
-, --, --
Methods inherited from Addable
+, ++, ++
Methods inherited from Function1
compose, andThen
Methods inherited from IterableTemplate
elements, foldRight, reduceRight, toIterable, head, takeRight, dropRight, sameElements, toStream, view, view, first, firstOption, toSeq, projection
Methods inherited from TraversableClass
genericBuilder, unzip, flatten, transpose
Methods inherited from TraversableTemplate
thisCollection, nonEmpty, hasDefiniteSize, ++, ++, map, flatMap, filter, filterMap, filterNot, remove, partition, groupBy, forall, exists, count, find, foldLeft, /:, :\, reduceLeft, reduceLeftOption, reduceRightOption, headOption, tail, last, lastOption, init, take, drop, slice, takeWhile, dropWhile, span, splitAt, copyToBuffer, copyToArray, copyToArray, toArray, toList, toSequence, toSet, mkString, mkString, mkString, addString, addString
Methods inherited from AnyRef
getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
override def empty : BitSet
Overrides
BitSet.empty, BitSetTemplate.empty

def fromArray(elems : Array[Long]) : BitSet
Create a new set of this kind from an array of longs
Overrides
BitSetTemplate.fromArray

protected abstract def updateWord(idx : Int, w : Long) : BitSet
Update word at index `idx`; enlarge set if `idx` outside range of set

def +(elem : Int) : BitSet
Adds element to bitset, returning a new set.

def -(elem : Int) : BitSet
Removes element from bitset, returning a new set