public class CharSequenceIterator
extends java.lang.Object
implements java.text.CharacterIterator
CharacterIterator
implementation for a given fragment of a CharSequence
.Constructor and Description |
---|
CharSequenceIterator(java.lang.CharSequence text,
int start,
int end) |
Modifier and Type | Method and Description |
---|---|
CharSequenceIterator |
clone() |
char |
current() |
char |
first() |
int |
getBeginIndex() |
int |
getEndIndex() |
int |
getIndex() |
char |
last() |
char |
next() |
char |
previous() |
char |
setIndex(int position) |
public CharSequenceIterator(java.lang.CharSequence text, int start, int end)
public char first()
first
in interface java.text.CharacterIterator
public char last()
last
in interface java.text.CharacterIterator
public char current()
current
in interface java.text.CharacterIterator
public char next()
next
in interface java.text.CharacterIterator
public char previous()
previous
in interface java.text.CharacterIterator
public char setIndex(int position)
setIndex
in interface java.text.CharacterIterator
public int getBeginIndex()
getBeginIndex
in interface java.text.CharacterIterator
public int getEndIndex()
getEndIndex
in interface java.text.CharacterIterator
public int getIndex()
getIndex
in interface java.text.CharacterIterator
public CharSequenceIterator clone()
clone
in interface java.text.CharacterIterator
clone
in class java.lang.Object