|
Scala Library
|
|
scala/Enumeration.scala]
class
ValueSet(val ids : BitSet)
extends Set[Value] with SetLike[Value, ValueSet]ids - The set of ids of values, organized as a BitSet.| Method Summary | |
def
|
+
(value : Value) : ValueSet
Creates a new set with an additional element, unless the element is
already present.
|
def
|
-
(value : Value) : ValueSet
Creates a new set with given element removed from this set, unless the
element is not present.
|
def
|
contains
(v : Value) : Boolean
Checks if this set contains element
elem. |
override def
|
empty : ValueSet |
def
|
iterator
: Iterator[Value]
Creates a new iterator over all elements contained in this
iterable object.
|
override def
|
stringPrefix
: java.lang.String
Defines the prefix of this object's
toString representation. |
| Methods inherited from Set | |
| companion |
| Methods inherited from SetLike | |
| newBuilder, isEmpty, apply, intersect, &, **, union, |, diff, &~, subsetOf, toString, hashCode, equals |
| Methods inherited from Subtractable | |
| -, --, -- |
| Methods inherited from Addable | |
| +, ++, ++ |
| Methods inherited from Function1 | |
| compose, andThen |
| Methods inherited from IterableLike | |
| thisCollection, toCollection, elements, foreach, forall, exists, find, foldRight, reduceRight, toIterable, head, take, slice, takeWhile, takeRight, dropRight, copyToArray, zip, zipAll, zipWithIndex, sameElements, toStream, canEqual, view, view, first, firstOption, projection |
| Methods inherited from GenericTraversableTemplate | |
| genericBuilder, unzip, flatten, transpose |
| Methods inherited from TraversableLike | |
| repr, nonEmpty, size, hasDefiniteSize, ++, ++, map, flatMap, filter, filterNot, partialMap, remove, partition, groupBy, count, foldLeft, /:, :\, reduceLeft, reduceLeftOption, reduceRightOption, sum, product, min, max, headOption, tail, last, lastOption, init, drop, dropWhile, span, splitAt, copyToBuffer, copyToArray, toArray, toList, toSeq, toIndexedSeq, toSet, mkString, mkString, mkString, addString, addString, addString, withFilter |
| 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 : ValueSet
elem.elem - the element to check for membership.true iff elem is contained in this set.elem - the element to be addedelem - the element to be removedoverride
def
stringPrefix : java.lang.String
toString representation.|
Scala Library
|
|