|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.common.spec.TokenDelimiter
public class TokenDelimiter
Data structure used to encapsulate the token's delimiters when reading a
StringToken. This structure is generally used at the
StringToken.getToken(reader, delimiter)
that was made to
generalize the act of read tokens.
Constructor Summary | |
---|---|
TokenDelimiter()
|
Method Summary | |
---|---|
void |
addDelimiter(char delimiter)
Adds a new character delimiter. |
boolean |
contains(char delimiter)
Checks if the given character is a delimiter for this set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TokenDelimiter()
Method Detail |
---|
public void addDelimiter(char delimiter)
delimiter
- The character that will be consider as a delimiter.public boolean contains(char delimiter)
delimiter
- The delimiter to be checked.
true
if the delimiter is part of the set and
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |