|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetkit.graph.TokenSet
netkit.graph.FixedTokenSet
public final class FixedTokenSet
This class keeps track of valid tokens for a CATEGORICAL attribute type. A token is valid if it exists in this container and all tokens must be provided at the time of construction. This class is immutable.
AttributeFixedCategorical
Field Summary |
---|
Fields inherited from class netkit.graph.TokenSet |
---|
tokenList, tokenMap |
Constructor Summary | |
---|---|
FixedTokenSet(java.lang.String[] tarray)
This constructor takes a String array of valid tokens; the tokens supplied to the constructor are the only valid ones for the lifetime of this token set. |
Method Summary |
---|
Methods inherited from class netkit.graph.TokenSet |
---|
add, contains, getToken, getTokens, getValue, size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FixedTokenSet(java.lang.String[] tarray)
tarray
- an array of String representing the valid tokens.
java.lang.RuntimeException
- if any of the tokens is duplicated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |