Class Trie2.CharSequenceIterator
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.impl.Trie2.CharSequenceIterator
- All Implemented Interfaces:
Iterator<Trie2.CharSequenceValues>
- Enclosing class:
Trie2
public class Trie2.CharSequenceIterator
extends Object
implements Iterator<Trie2.CharSequenceValues>
An iterator that operates over an input CharSequence, and for each Unicode code point
in the input returns the associated value from the Trie2.
The iterator can move forwards or backwards, and can be reset to an arbitrary index.
Note that Trie2_16 and Trie2_32 subclass Trie2.CharSequenceIterator. This is done
only for performance reasons. It does require that any changes made here be propagated
into the corresponding code in the subclasses.
-
Method Details
-
set
public void set(int i) -
hasNext
public final boolean hasNext()- Specified by:
hasNextin interfaceIterator<Trie2.CharSequenceValues>
-
hasPrevious
public final boolean hasPrevious() -
next
- Specified by:
nextin interfaceIterator<Trie2.CharSequenceValues>
-
previous
-
remove
public void remove()Iterator.remove() is not supported by Trie2.CharSequenceIterator.- Specified by:
removein interfaceIterator<Trie2.CharSequenceValues>- Throws:
UnsupportedOperationException- Always thrown because this operation is not supported- See Also:
-