| java.lang.Object | |
| ↳ | java.text.StringCharacterIterator |
StringCharacterIterator is an implementation of CharacterIterator for Strings.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
java.text.CharacterIterator
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new StringCharacterIterator on the specified String.
| |||||||||||
Constructs a new StringCharacterIterator on the specified String with the
current index set to the specified value.
| |||||||||||
Constructs a new StringCharacterIterator on the specified String with the
begin, end and current index set to the specified values.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns a new StringCharacterIterator with the same source String, begin,
end, and current index as this StringCharacterIterator.
| |||||||||||
Returns the character at the current index in the source String.
| |||||||||||
Compares the specified object to this StringCharacterIterator and answer
if they are equal.
| |||||||||||
Sets the current position to the begin index and returns the character at
the begin 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 the receiver.
| |||||||||||
Sets the current position to the end index - 1 and returns the character
at the current 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.
| |||||||||||
|
[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 indexes are set to the beginning of the String, the end index is set to the length of the String.
| value | the new source String to iterate |
|---|
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 new source String to iterate |
|---|---|
| location | the current index |
| IllegalArgumentException | when the current index is less than zero or greater than the length of the String |
|---|
Constructs a new StringCharacterIterator on the specified String with the begin, end and current index set to the specified values.
| value | the new source String to iterate |
|---|---|
| start | the index of the first character to iterate |
| end | the index one past the last character to iterate |
| location | the current index |
| IllegalArgumentException | when the begin index is less than zero, the end index is greater than the String length, the begin index is greater than the end index, the current index is less than the begin index or greater than the end index |
|---|
Returns a new StringCharacterIterator with the same source String, begin, end, and current index as this StringCharacterIterator.
Returns the character at the current index in the source String.
Compares the specified object to this StringCharacterIterator and answer if they are equal. The object must be a StringCharacterIterator iterating over the same sequence of characters with the same index.
| object | the object to compare with this object |
|---|
Sets the current position to the begin index and returns the character at the begin 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 the receiver. Objects which are equal answer the same value for this method.
Sets the current position to the end index - 1 and returns the character at the current 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.
| location | The index the CharacterIterator is set to. |
|---|
| IllegalArgumentException | when the new index is less than the begin index or greater than the end index |
|---|
Sets the source String to iterate. The begin and end positions are set to the start and end of this String.
| value | the new source String |
|---|