Scala Library
|
|
scala/collection/immutable/BitSet.scala
]
abstract
class
BitSet
extends
Set[Int] with
BitSet with
BitSetTemplate[BitSet]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
Scala Library
|
|