Package io.karma.sliced.iterator.impl
Class ArrayTextIterator
java.lang.Object
io.karma.sliced.iterator.impl.ArrayTextIterator
- All Implemented Interfaces:
TextIterator
,Resettable
,Cloneable
,CharacterIterator
- Since:
- 06/09/2022
-
Field Summary
Fields inherited from interface java.text.CharacterIterator
DONE
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ArrayTextIterator
public ArrayTextIterator(char[] ref)
-
-
Method Details
-
reset
public void reset()Description copied from interface:Resettable
Resets the internal states of this object instance.- Specified by:
reset
in interfaceResettable
-
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
-