|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.chaperon.common.SortedCharSet
This class represents a set of char values, which means there doesn't exist multiple instances of values.
Constructor Summary | |
SortedCharSet()
Creates an empty set of char values. |
Method Summary | |
void |
addChar(char value)
Add a value to this set. |
void |
addChar(char[] array)
Add the values of an array to this set. |
void |
clear()
Removes all values from this set |
boolean |
contains(char value)
If the list contains a value. |
char[] |
getChar()
|
char |
getChar(int index)
Return a value from this set given by an index. |
char |
getCharCount()
Returns the count of value in this set. |
int |
indexOf(char value)
Return the index of a value, otherwise -1 |
boolean |
isEmpty()
If this set contains no values. |
void |
removeChar(char index)
Removes a value giving by an index. |
java.lang.String |
toString()
Return a string representation of the collection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SortedCharSet()
Method Detail |
public void addChar(char value)
value
- Char value.
public void addChar(char[] array)
array
- Array of char values.public void removeChar(char index)
index
- Index of the char value.public char getChar(int index)
index
- Index of the value.
public char[] getChar()
public char getCharCount()
public int indexOf(char value)
value
- Value, which should be found in this set.
public boolean contains(char value)
value
- Value, which should be found in this set
public boolean isEmpty()
public void clear()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |