Package org.apache.pivot.text
Class CharSequenceCharacterIterator
- java.lang.Object
-
- org.apache.pivot.text.CharSequenceCharacterIterator
-
- All Implemented Interfaces:
java.lang.Cloneable
,java.text.CharacterIterator
public final class CharSequenceCharacterIterator extends java.lang.Object implements java.text.CharacterIterator
Character iterator that is backed by aCharSequence
.
-
-
Constructor Summary
Constructors Constructor Description CharSequenceCharacterIterator(java.lang.CharSequence charSequence)
CharSequenceCharacterIterator(java.lang.CharSequence charSequence, int beginIndex)
CharSequenceCharacterIterator(java.lang.CharSequence charSequence, int beginIndex, int endIndex)
CharSequenceCharacterIterator(java.lang.CharSequence charSequence, int beginIndex, int endIndex, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
char
current()
char
first()
int
getBeginIndex()
int
getEndIndex()
int
getIndex()
char
last()
char
next()
char
previous()
char
setIndex(int index)
-
-
-
Constructor Detail
-
CharSequenceCharacterIterator
public CharSequenceCharacterIterator(java.lang.CharSequence charSequence)
-
CharSequenceCharacterIterator
public CharSequenceCharacterIterator(java.lang.CharSequence charSequence, int beginIndex)
-
CharSequenceCharacterIterator
public CharSequenceCharacterIterator(java.lang.CharSequence charSequence, int beginIndex, int endIndex)
-
CharSequenceCharacterIterator
public CharSequenceCharacterIterator(java.lang.CharSequence charSequence, int beginIndex, int endIndex, int index)
-
-
Method Detail
-
first
public char first()
- Specified by:
first
in interfacejava.text.CharacterIterator
-
last
public char last()
- Specified by:
last
in interfacejava.text.CharacterIterator
-
next
public char next()
- Specified by:
next
in interfacejava.text.CharacterIterator
-
previous
public char previous()
- Specified by:
previous
in interfacejava.text.CharacterIterator
-
current
public char current()
- Specified by:
current
in interfacejava.text.CharacterIterator
-
getBeginIndex
public int getBeginIndex()
- Specified by:
getBeginIndex
in interfacejava.text.CharacterIterator
-
getEndIndex
public int getEndIndex()
- Specified by:
getEndIndex
in interfacejava.text.CharacterIterator
-
getIndex
public int getIndex()
- Specified by:
getIndex
in interfacejava.text.CharacterIterator
-
setIndex
public char setIndex(int index)
- Specified by:
setIndex
in interfacejava.text.CharacterIterator
-
clone
public java.lang.Object clone()
- Specified by:
clone
in interfacejava.text.CharacterIterator
- Overrides:
clone
in classjava.lang.Object
-
-