| java.lang.Object | |
| ↳ | java.text.StringCharacterIterator | 
An implementation of CharacterIterator for strings. 
| [Expand] 
           Inherited Constants
           | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From interface java.text.CharacterIterator | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  | 
           Constructs a new 
            StringCharacterIteratoron the specified string. | ||||||||||
|  | 
           Constructs a new 
            StringCharacterIteratoron the specified string with the current index set to the specified value. | ||||||||||
|  | 
           Constructs a new 
            StringCharacterIteratoron the specified string with the begin, end and current index set to the specified values. | ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  | 
           Returns a new 
            StringCharacterIteratorwith the same source string, begin, end, and current index as this iterator. | ||||||||||
|  | 
           Returns the character at the current index in the source string.
           | ||||||||||
|  | 
           Compares the specified object with this 
            StringCharacterIteratorand indicates if they are equal. | ||||||||||
|  | 
           Sets the current position to the begin index and returns the character at the new position in the source string.
           | ||||||||||
|  | 
           Returns the begin index in the source string.
           | ||||||||||
|  | 
           Returns the end index in the source string.
           | ||||||||||
|  | 
           Returns the current index in the source string.
           | ||||||||||
|  | 
           Returns an integer hash code for this object.
           | ||||||||||
|  | 
           Sets the current position to the end index - 1 and returns the character at the new position.
           | ||||||||||
|  | 
           Increments the current index and returns the character at the new index.
           | ||||||||||
|  | 
           Decrements the current index and returns the character at the new index.
           | ||||||||||
|  | 
           Sets the current index in the source string.
           | ||||||||||
|  | 
           Sets the source string to iterate over.
           | ||||||||||
| [Expand] 
           Inherited Methods
           | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class java.lang.Object | |||||||||||
|  From interface java.text.CharacterIterator | |||||||||||
Constructs a new StringCharacterIterator on the specified string. The begin and current indices are set to the beginning of the string, the end index is set to the length of the string.
| value | the source string to iterate over. | 
|---|
Constructs a new StringCharacterIterator on the specified string with the current index set to the specified value. The begin index is set to the beginning of the string, the end index is set to the length of the string.
| value | the source string to iterate over. | 
|---|---|
| location | the current index. | 
| IllegalArgumentException | if locationis negative or greater than the length of the source string. | 
|---|
Constructs a new StringCharacterIterator on the specified string with the begin, end and current index set to the specified values.
| value | the source string to iterate over. | 
|---|---|
| start | the index of the first character to iterate. | 
| end | the index one past the last character to iterate. | 
| location | the current index. | 
| IllegalArgumentException | if start < 0,start > end,location < start,location > endor ifendis greater than the length ofvalue. | 
|---|
Returns a new StringCharacterIterator with the same source string, begin, end, and current index as this iterator.
Returns the character at the current index in the source string.
DONE if the current index is past the end. Compares the specified object with this StringCharacterIterator and indicates if they are equal. In order to be equal, object must be an instance of StringCharacterIterator that iterates over the same sequence of characters with the same index.
| object | the object to compare with this object. | 
|---|
true if the specified object is equal to this StringCharacterIterator; false otherwise.Sets the current position to the begin index and returns the character at the new position in the source string.
DONE if the begin index is equal to the end index. Returns the begin index in the source string.
Returns the end index in the source string.
Returns the current index in the source string.
Returns an integer hash code for this object. By contract, any two objects for which equals(Object) returns true must return the same hash code value. This means that subclasses of Object usually override both methods or neither method. 
Note that hash values must not change over time unless information used in equals comparisons also changes.
See Writing a correct hashCode method if you intend implementing your own hashCode method.
Sets the current position to the end index - 1 and returns the character at the new position.
DONE if the begin index is equal to the end index. Increments the current index and returns the character at the new index.
DONE if the next index would be past the end. Decrements the current index and returns the character at the new index.
DONE if the previous index would be past the beginning. Sets the current index in the source string.
| location | the index the current position is set to. | 
|---|
DONE if location is set to the end index.| IllegalArgumentException | if locationis smaller than the begin index or greater than the end index. | 
|---|
Sets the source string to iterate over. The begin and end positions are set to the start and end of this string.
| value | the new source string. | 
|---|