|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.lang.CharSet
A set of characters. You can iterate over the characters in the set.
Field Summary | |
private java.util.LinkedList |
set
|
Constructor Summary | |
protected |
CharSet(java.lang.String[] set)
Restricted constructor. |
Method Summary | |
protected void |
add(java.lang.String str)
Add a set definition string to the set |
boolean |
contains(char ch)
Does the set contain the character specified |
java.lang.String |
toString()
Returns a string representation of the set |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.util.LinkedList set
Constructor Detail |
protected CharSet(java.lang.String[] set)
java.lang.NullPointerException
- if any of set[i] is null or if set is nullMethod Detail |
public boolean contains(char ch)
ch
- the character to check for
protected void add(java.lang.String str)
str
- set definition string
java.lang.NullPointerException
- if str is nullpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |