public final class StringCharacterIterator extends Object implements CharacterIterator
DONE
Constructor and Description |
---|
StringCharacterIterator(String text) |
StringCharacterIterator(String text,
int index) |
StringCharacterIterator(String text,
int begin,
int end,
int index) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Default clone() method performs a "shallow" cloning of the instance.
|
char |
current() |
boolean |
equals(Object o)
Default object equality (is identity).
|
char |
first() |
int |
getBeginIndex() |
int |
getEndIndex() |
int |
getIndex() |
int |
hashCode()
The (default) object hashcode: for transient objects this is simply the
address of the instance in memory, for persistent objects it is the
address at which the instance was first created (maybe in a previous
activation of the VM).
|
char |
last() |
char |
next() |
char |
previous() |
char |
setIndex(int idx) |
void |
setText(String txt) |
public StringCharacterIterator(String text)
public StringCharacterIterator(String text, int index)
public StringCharacterIterator(String text, int begin, int end, int index)
public Object clone()
Object
clone
in interface CharacterIterator
clone
in class Object
public char current()
current
in interface CharacterIterator
public boolean equals(Object o)
Object
public char first()
first
in interface CharacterIterator
public int getBeginIndex()
getBeginIndex
in interface CharacterIterator
public int getEndIndex()
getEndIndex
in interface CharacterIterator
public int getIndex()
getIndex
in interface CharacterIterator
public int hashCode()
Object
public char last()
last
in interface CharacterIterator
public char next()
next
in interface CharacterIterator
public char previous()
previous
in interface CharacterIterator
public char setIndex(int idx)
setIndex
in interface CharacterIterator
public void setText(String txt)