Package com.ibm.icu.util
Class BytesTrie.Iterator
- java.lang.Object
-
- com.ibm.icu.util.BytesTrie.Iterator
-
- All Implemented Interfaces:
Iterator<BytesTrie.Entry>
- Enclosing class:
- BytesTrie
public static final class BytesTrie.Iterator extends Object implements Iterator<BytesTrie.Entry>
Iterator for all of the (byte sequence, value) pairs in a BytesTrie.- Status:
- Stable ICU 4.8.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()BytesTrie.Entrynext()Finds the next (byte sequence, value) pair if there is one.voidremove()Iterator.remove() is not supported.BytesTrie.Iteratorreset()Resets this iterator to its initial state.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
reset
public BytesTrie.Iterator reset()
Resets this iterator to its initial state.- Returns:
- this
- Status:
- Stable ICU 4.8.
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator<BytesTrie.Entry>- Returns:
- true if there are more elements.
- Status:
- Stable ICU 4.8.
-
next
public BytesTrie.Entry next()
Finds the next (byte sequence, value) pair if there is one. If the byte sequence is truncated to the maximum length and does not have a real value, then the value is set to -1. In this case, this "not a real value" is indistinguishable from a real value of -1.- Specified by:
nextin interfaceIterator<BytesTrie.Entry>- Returns:
- An Entry with the string and value of the next element.
- Throws:
NoSuchElementException- - iteration has no more elements.- Status:
- Stable ICU 4.8.
-
remove
public void remove()
Iterator.remove() is not supported.- Specified by:
removein interfaceIterator<BytesTrie.Entry>- Throws:
UnsupportedOperationException- (always)- Status:
- Stable ICU 4.8.
-
-