public final class UtlLinkedLongMap.FastIterator extends Object implements ListIterator<UtlLinkedLongMap.Entry<V>>
UtlLinkedLongMap
entries. This iterator is bi-directional and can be
directly moved to the first
or last
entry. For example:for (FastIterator i=map.fastIterator().toFirst(); i.hasNext();) { Entry entry = i.nextEntry(); ... }
setting
or adding
new entries is not
supported.Constructor and Description |
---|
UtlLinkedLongMap.FastIterator() |
Modifier and Type | Method and Description |
---|---|
void |
add(UtlLinkedLongMap.Entry<V> o) |
boolean |
hasNext() |
boolean |
hasPrevious() |
UtlLinkedLongMap.Entry<V> |
next() |
UtlLinkedLongMap.Entry<V> |
nextEntry() |
int |
nextIndex() |
UtlLinkedLongMap.Entry<V> |
previous() |
UtlLinkedLongMap.Entry<V> |
previousEntry() |
int |
previousIndex() |
void |
remove() |
void |
set(UtlLinkedLongMap.Entry<V> o) |
UtlLinkedLongMap.FastIterator |
toFirst()
Resets the iterator to the beginning.
|
UtlLinkedLongMap.FastIterator |
toLast()
Resets the iterator to the last element.
|
public UtlLinkedLongMap.FastIterator toFirst()
public UtlLinkedLongMap.FastIterator toLast()
public boolean hasNext()
hasNext
in interface Iterator<UtlLinkedLongMap.Entry<V>>
hasNext
in interface ListIterator<UtlLinkedLongMap.Entry<V>>
public UtlLinkedLongMap.Entry<V> nextEntry()
public UtlLinkedLongMap.Entry<V> next()
next
in interface Iterator<UtlLinkedLongMap.Entry<V>>
next
in interface ListIterator<UtlLinkedLongMap.Entry<V>>
public boolean hasPrevious()
hasPrevious
in interface ListIterator<UtlLinkedLongMap.Entry<V>>
public UtlLinkedLongMap.Entry<V> previousEntry()
public UtlLinkedLongMap.Entry<V> previous()
previous
in interface ListIterator<UtlLinkedLongMap.Entry<V>>
public int nextIndex()
nextIndex
in interface ListIterator<UtlLinkedLongMap.Entry<V>>
public int previousIndex()
previousIndex
in interface ListIterator<UtlLinkedLongMap.Entry<V>>
public void remove()
remove
in interface Iterator<UtlLinkedLongMap.Entry<V>>
remove
in interface ListIterator<UtlLinkedLongMap.Entry<V>>
public void set(UtlLinkedLongMap.Entry<V> o)
set
in interface ListIterator<UtlLinkedLongMap.Entry<V>>
public void add(UtlLinkedLongMap.Entry<V> o)
add
in interface ListIterator<UtlLinkedLongMap.Entry<V>>
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.