Class AbstractMap.Iter<K,V>
java.lang.Object
org.apache.sis.internal.util.AbstractMap.Iter<K,V>
- Direct Known Subclasses:
AbstractMap.Entries, AbstractMap.Keys, AbstractMap.Values
- Enclosing class:
AbstractMap<K,V>
Base class of iterators overs keys, values or entries.
Those iterators wrap an
AbstractMap.EntryIterator instance.- Since:
- 0.5
- Version:
- 0.8
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIter(AbstractMap.EntryIterator<K, V> iterator) Creates a new standard iterator wrapping the given entry iterator. -
Method Summary
Modifier and TypeMethodDescription(package private) final AbstractMap.EntryIterator<K, V> entry()Ensures that the entry iterator is positioned on a valid entry, and returns it.final booleanhasNext()Returnstrueif there is at least one more element to return.final voidremove()Removes the current entry.
-
Field Details
-
iterator
The wrapped entry iterator. -
hasNext
private byte hasNext -
TRUE
-
FALSE
-
AFTER_NEXT
-
-
Constructor Details
-
Iter
Iter(AbstractMap.EntryIterator<K, V> iterator) Creates a new standard iterator wrapping the given entry iterator.- Parameters:
iterator-AbstractMap.entryIterator().
-
-
Method Details
-
hasNext
public final boolean hasNext()Returnstrueif there is at least one more element to return. -
entry
Ensures that the entry iterator is positioned on a valid entry, and returns it. This method shall be invoked by implementations ofIterator.next(). -
remove
public final void remove()Removes the current entry.
-