Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.text.StringCharacterIterator
StringCharacterIterator
implements the
CharacterIterater
protocol for a String
.
The StringCharacterIterator
class iterates over the
entire String
.
CharacterIterator
Fields inherited from interface java.text.CharacterIterator |
DONE |
Constructor Summary | |
StringCharacterIterator(String text)
Constructs an iterator with an initial index of 0. |
|
StringCharacterIterator(String text,
int pos)
Constructs an iterator with the specified initial index. |
|
StringCharacterIterator(String text,
int begin,
int end,
int pos)
Constructs an iterator over the given range of the given string, with the index set at the specified position. |
Method Summary | |
Object |
clone()
Creates a copy of this iterator. |
char |
current()
Implements CharacterIterator.current() for String. |
boolean |
equals(Object obj)
Compares the equality of two StringCharacterIterator objects. |
char |
first()
Implements CharacterIterator.first() for String. |
int |
getBeginIndex()
Implements CharacterIterator.getBeginIndex() for String. |
int |
getEndIndex()
Implements CharacterIterator.getEndIndex() for String. |
int |
getIndex()
Implements CharacterIterator.getIndex() for String. |
int |
hashCode()
Computes a hashcode for this iterator. |
char |
last()
Implements CharacterIterator.last() for String. |
char |
next()
Implements CharacterIterator.next() for String. |
char |
previous()
Implements CharacterIterator.previous() for String. |
char |
setIndex(int p)
Implements CharacterIterator.setIndex() for String. |
void |
setText(String text)
Reset this iterator to point to a new string. |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public StringCharacterIterator(String text)
public StringCharacterIterator(String text, int pos)
text
- The String to be iterated overpos
- Initial iterator positionpublic StringCharacterIterator(String text, int begin, int end, int pos)
text
- The String to be iterated overbegin
- Index of the first characterend
- Index of the character following the last characterpos
- Initial iterator positionMethod Detail |
public void setText(String text)
text
- The String to be iterated overpublic char first()
CharacterIterator.first()
public char last()
CharacterIterator.last()
public char setIndex(int p)
CharacterIterator.setIndex(int)
public char current()
CharacterIterator.current()
public char next()
CharacterIterator.next()
public char previous()
CharacterIterator.previous()
public int getBeginIndex()
CharacterIterator.getBeginIndex()
public int getEndIndex()
CharacterIterator.getEndIndex()
public int getIndex()
CharacterIterator.getIndex()
public boolean equals(Object obj)
obj
- the StringCharacterIterator object to be compared with.public int hashCode()
public Object clone()
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |