A class that represents an immutable set of
Enumerator s.
Its main features are its constructor, which initializes the object from a clear-text string,
and its
EnumeratorSet.toString() method, which reconstructs the clear text values.
Sample code can be found in the documentation of
Enumerator .
EnumeratorSet(Class enumeratorClass, boolean full) Construct a set for values of the given
Enumerator -derived type.
public
EnumeratorSet(Class enumeratorClass, String s) Construct a set for values of the given
Enumerator -derived type and initialize it
from a string.
public
EnumeratorSet(Class enumeratorClass, String s, String delimiter) Construct a set for values of the given
Enumerator -derived type and initialize it
from a string.
The given string is parsed into tokens; each token is converted into a value as
Enumerator.fromString(StringClass) does and added to this set.
Construct a set for values of the given
Enumerator -derived type and initialize it
from a string.
The given string is parsed into tokens; each token is converted into a value as
Enumerator.fromString(StringClass) does and added to this set. Named
EnumeratorSet s
declared in the enumeratorClass are also recognized and added. If the string names exactly one
of those
EnumeratorSet s declared in the enumeratorClass, then the resulting set
inherits the name of theat
EnumeratorSet .
throws: EnumeratorFormatException - if a token cannot be identified
Check whether this set contains the given value
throws: EnumeratorSetTypeException - if this set was constructed for a different Enumerator-derived type
Check if this set contains all values of the given set.
throws: EnumeratorSetTypeException - if this set was constructed for a different Enumerator-derived type
Check if this set contains any of the values of the given set.
Returns false if either of the two sets is empty.
throws: EnumeratorSetTypeException - if this set was constructed for a different Enumerator-derived type