Package com.ibm.icu.util
Class CodePointTrie.Fast.FastStringIterator
- java.lang.Object
-
- com.ibm.icu.util.CodePointMap.StringIterator
-
- com.ibm.icu.util.CodePointTrie.Fast.FastStringIterator
-
- Enclosing class:
- CodePointTrie.Fast
private final class CodePointTrie.Fast.FastStringIterator extends CodePointMap.StringIterator
-
-
Field Summary
-
Fields inherited from class com.ibm.icu.util.CodePointMap.StringIterator
c, s, sIndex, value
-
-
Constructor Summary
Constructors Modifier Constructor Description private
FastStringIterator(java.lang.CharSequence s, int sIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
next()
Reads the next code point, post-increments the string index, and gets a value from the map.boolean
previous()
Reads the previous code point, pre-decrements the string index, and gets a value from the map.-
Methods inherited from class com.ibm.icu.util.CodePointMap.StringIterator
getCodePoint, getIndex, getValue, reset
-
-
-
-
Method Detail
-
next
public boolean next()
Description copied from class:CodePointMap.StringIterator
Reads the next code point, post-increments the string index, and gets a value from the map. Sets an implementation-defined error value if the code point is an unpaired surrogate.- Overrides:
next
in classCodePointMap.StringIterator
- Returns:
- true if the string index was not yet at the end of the string; otherwise the iterator did not advance
-
previous
public boolean previous()
Description copied from class:CodePointMap.StringIterator
Reads the previous code point, pre-decrements the string index, and gets a value from the map. Sets an implementation-defined error value if the code point is an unpaired surrogate.- Overrides:
previous
in classCodePointMap.StringIterator
- Returns:
- true if the string index was not yet at the start of the string; otherwise the iterator did not advance
-
-