| 
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectdk.brics.string.charset.CharSet
public class CharSet
Character set.
| Constructor Summary | |
|---|---|
CharSet()
Constructs new empty character set.  | 
|
CharSet(Automaton a)
Returns new character set with all characters in strings in the given language.  | 
|
CharSet(String s)
Returns new character set with all characters in the specified string.  | 
|
| Method Summary | |
|---|---|
 CharSet | 
add(char c)
Constructs character set as this one but adds the given character.  | 
 CharSet | 
clone()
 | 
 boolean | 
contains(char c)
Checks whether a particular characters is in the set.  | 
 boolean | 
equals(Object obj)
 | 
 int | 
hashCode()
 | 
 CharSet | 
intersection(CharSet other)
Constructs a new character set as the intersection of this set and the specified set.  | 
static CharSet | 
makeAnychars()
Returns new character set with every character.  | 
 CharSet | 
remove(char c)
Constructs character set as this one but removes the given character.  | 
 Automaton | 
toAutomaton()
Constructs automaton accepting strings with zero or more characters from this set.  | 
 CharSet | 
toLowerCase()
Constructs character set as this one and performs uppercase conversion of all characters.  | 
 String | 
toString()
 | 
 CharSet | 
toUpperCase()
Constructs character set as this one and performs lowercase conversion of all characters, as done by String.toUpperCase() (which occasionally differs from character-wise application of Character.toUpperCase(char)) | 
 CharSet | 
union(CharSet a)
Constructs union of this character set and the given one.  | 
static CharSet | 
union(List<CharSet> c)
Constructs union of the given character sets.  | 
| Methods inherited from class java.lang.Object | 
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public CharSet()
public CharSet(Automaton a)
public CharSet(String s)
| Method Detail | 
|---|
public CharSet add(char c)
public CharSet clone()
clone in class Objectpublic boolean contains(char c)
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic CharSet intersection(CharSet other)
public static CharSet makeAnychars()
public CharSet remove(char c)
public Automaton toAutomaton()
public CharSet toLowerCase()
public String toString()
toString in class Objectpublic CharSet toUpperCase()
String.toUpperCase() (which occasionally differs from character-wise application of Character.toUpperCase(char))
public CharSet union(CharSet a)
public static CharSet union(List<CharSet> c)
  | 
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||