| java.lang.Object net.sourceforge.chaperon.common.SortedCharSet
SortedCharSet | public class SortedCharSet (Code) | | This class represents a set of char values, which means there doesn't exist multiple instances
of values.
author: Stephan Michels version: CVS $Id: SortedCharSet.java,v 1.3 2003/12/29 14:48:12 benedikta Exp $ |
Constructor Summary | |
public | SortedCharSet() Creates an empty set of char values. |
Method Summary | |
public void | addChar(char value) Add a value to this set.
Parameters: value - Char value. | public void | addChar(char[] array) Add the values of an array to this set. | public void | clear() | public boolean | contains(char value) If the list contains a value. | public char | getChar(int index) Return a value from this set given by an index.
Parameters: index - Index of the value. | public char[] | getChar() | public char | getCharCount() Returns the count of value in this set. | public int | indexOf(char value) Return the index of a value, otherwise -1
Parameters: value - Value, which should be found in this set. | public boolean | isEmpty() If this set contains no values. | public void | removeChar(char index) Removes a value giving by an index. | public String | toString() Return a string representation of the collection. |
SortedCharSet | public SortedCharSet()(Code) | | Creates an empty set of char values.
|
addChar | public void addChar(char value)(Code) | | Add a value to this set.
Parameters: value - Char value. Index of this value. |
addChar | public void addChar(char[] array)(Code) | | Add the values of an array to this set.
Parameters: array - Array of char values. |
clear | public void clear()(Code) | | Removes all values from this set
|
contains | public boolean contains(char value)(Code) | | If the list contains a value.
Parameters: value - Value, which should be found in this set True, if this set contains the value. |
getChar | public char getChar(int index)(Code) | | Return a value from this set given by an index.
Parameters: index - Index of the value. Char value. |
getChar | public char[] getChar()(Code) | | |
getCharCount | public char getCharCount()(Code) | | Returns the count of value in this set.
Count of char values. |
indexOf | public int indexOf(char value)(Code) | | Return the index of a value, otherwise -1
Parameters: value - Value, which should be found in this set. Index of this value. |
isEmpty | public boolean isEmpty()(Code) | | If this set contains no values.
True, if this set is empty. |
removeChar | public void removeChar(char index)(Code) | | Removes a value giving by an index.
Parameters: index - Index of the char value. |
toString | public String toString()(Code) | | Return a string representation of the collection.
String representation of the collection. |
|
|