Package org.apache.sis.internal.util
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.-
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 boolean
hasNext()
Returnstrue
if there is at least one more element to return.final void
remove()
Removes the current entry.
-
Field Details
-
iterator
The wrapped entry iterator. -
hasNext
private byte hasNext -
TRUE
private static final byte TRUEPossible values forhasNext
.- See Also:
-
FALSE
private static final byte FALSEPossible values forhasNext
.- See Also:
-
AFTER_NEXT
private static final byte AFTER_NEXTPossible values forhasNext
.- See Also:
-
-
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()Returnstrue
if 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.
-