Package icyllis.modernui.graphics.text
Class CharArrayIterator
java.lang.Object
icyllis.modernui.graphics.text.CharArrayIterator
- All Implemented Interfaces:
Cloneable
,CharacterIterator
-
Field Summary
Fields inherited from interface java.text.CharacterIterator
DONE
-
Constructor Summary
ConstructorDescriptionCharArrayIterator
(char[] text) CharArrayIterator
(char[] text, int start) CharArrayIterator
(char[] text, int start, int end) -
Method Summary
-
Constructor Details
-
CharArrayIterator
public CharArrayIterator(char[] text) -
CharArrayIterator
public CharArrayIterator(char[] text, int start) -
CharArrayIterator
public CharArrayIterator(@Nonnull char[] text, int start, int end)
-
-
Method Details
-
first
public char first()- Specified by:
first
in interfaceCharacterIterator
-
last
public char last()- Specified by:
last
in interfaceCharacterIterator
-
current
public char current()- Specified by:
current
in interfaceCharacterIterator
-
next
public char next()- Specified by:
next
in interfaceCharacterIterator
-
previous
public char previous()- Specified by:
previous
in interfaceCharacterIterator
-
setIndex
public char setIndex(int position) - Specified by:
setIndex
in interfaceCharacterIterator
-
getBeginIndex
public int getBeginIndex()- Specified by:
getBeginIndex
in interfaceCharacterIterator
-
getEndIndex
public int getEndIndex()- Specified by:
getEndIndex
in interfaceCharacterIterator
-
getIndex
public int getIndex()- Specified by:
getIndex
in interfaceCharacterIterator
-
clone
- Specified by:
clone
in interfaceCharacterIterator
- Overrides:
clone
in classObject
-