public static class ObjectIterators.UnmodifiableIterator<K> extends Object implements ObjectIterator<K>
| Constructor and Description |
|---|
UnmodifiableIterator(ObjectIterator<K> i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns
true if the iteration has more elements. |
K |
next()
Returns the next element in the iteration.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitskipforEachRemaining, removepublic UnmodifiableIterator(ObjectIterator<K> i)
public boolean hasNext()
java.util.Iteratortrue if the iteration has more elements.
(In other words, returns true if Iterator.next() would
return an element rather than throwing an exception.)public K next()
java.util.Iterator