T - the element type to iterate overprotected abstract static class AbstractLongHashMap.DelegatingMapIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>, java.lang.Iterable<T>
next
method is left open and should be implemented by return
iter.next().doSomethingToGetT or equivalently
return iter.findNext(true).doSomethingToGetT.| Modifier and Type | Field and Description |
|---|---|
protected AbstractLongHashMap.MapIterator |
iter
Stores the map iterator.
|
| Constructor and Description |
|---|
DelegatingMapIterator(AbstractLongHashMap.MapIterator iter)
Creates a new delegating iterator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns whether there is a next element.
|
java.util.Iterator<T> |
iterator()
Returns an iterator over a set of elements of type T.
|
void |
remove()
Removes the current element.
|
protected AbstractLongHashMap.MapIterator iter
public DelegatingMapIterator(AbstractLongHashMap.MapIterator iter)
iter - the iterator to delegate topublic void remove()
remove in interface java.util.Iterator<T>java.lang.UnsupportedOperationException - alwayspublic java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T>public boolean hasNext()
hasNext in interface java.util.Iterator<T>true if there is a next element,
false else