scala.Enumeration

class ValueSet

[source: scala/Enumeration.scala]

class ValueSet(val ids : BitSet)
extends Set[Value] with SetTemplate[Value, ValueSet]
A class for sets of values Iterating through this set will yield values in increasing order of their ids.
Parameters
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, hashCode
Methods inherited from SetTemplate
newBuilder, isEmpty, apply, intersect, &, **, union, |, diff, &~, subsetOf, equals, toString
Methods inherited from Subtractable
-, --, --
Methods inherited from Addable
+, ++, ++
Methods inherited from Function1
compose, andThen
Methods inherited from IterableTemplate
elements, foreach, 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, size, 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, 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 : ValueSet
Overrides
SetTemplate.empty

def contains(v : Value) : Boolean
Checks if this set contains element elem.
Parameters
elem - the element to check for membership.
Returns
true iff elem is contained in this set.
Overrides
SetTemplate.contains

def +(value : Value) : ValueSet
Creates a new set with an additional element, unless the element is already present.
Parameters
elem - the element to be added
Overrides
SetTemplate.+

def -(value : Value) : ValueSet
Creates a new set with given element removed from this set, unless the element is not present.
Parameters
elem - the element to be removed
Overrides
SetTemplate.-

def iterator : Iterator[Value]
Creates a new iterator over all elements contained in this iterable object.
Returns
the new iterator

override def stringPrefix : java.lang.String
Defines the prefix of this object's toString representation.
Overrides
SetTemplate.stringPrefix