Class ConcurrentLong2LongChainedHashTable.BaseIteratorImpl<T>
java.lang.Object
ca.spottedleaf.concurrentutil.map.ConcurrentLong2LongChainedHashTable.NodeIterator
ca.spottedleaf.concurrentutil.map.ConcurrentLong2LongChainedHashTable.BaseIteratorImpl<T>
- All Implemented Interfaces:
Iterator<T>
- Direct Known Subclasses:
ConcurrentLong2LongChainedHashTable.BaseLongIteratorImpl,ConcurrentLong2LongChainedHashTable.EntryIterator
- Enclosing class:
ConcurrentLong2LongChainedHashTable
protected abstract static class ConcurrentLong2LongChainedHashTable.BaseIteratorImpl<T>
extends ConcurrentLong2LongChainedHashTable.NodeIterator
implements Iterator<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.spottedleaf.concurrentutil.map.ConcurrentLong2LongChainedHashTable.NodeIterator
ConcurrentLong2LongChainedHashTable.NodeIterator.ResizeChain -
Field Summary
FieldsFields inherited from class ca.spottedleaf.concurrentutil.map.ConcurrentLong2LongChainedHashTable.NodeIterator
currentTable, increment, last, nextBin, resizeChain -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionabstract voidforEachRemaining(Consumer<? super T> action) final booleanhasNext()abstract Tnext()protected final ConcurrentLong2LongChainedHashTable.TableEntrynextNode()final voidremove()Methods inherited from class ca.spottedleaf.concurrentutil.map.ConcurrentLong2LongChainedHashTable.NodeIterator
findNext
-
Field Details
-
map
-
lastReturned
-
nextToReturn
-
-
Constructor Details
-
BaseIteratorImpl
-
-
Method Details
-
hasNext
public final boolean hasNext() -
nextNode
protected final ConcurrentLong2LongChainedHashTable.TableEntry nextNode() throws NoSuchElementException- Throws:
NoSuchElementException
-
remove
public final void remove() -
next
- Specified by:
nextin interfaceIterator<T>- Throws:
NoSuchElementException
-
forEachRemaining
- Specified by:
forEachRemainingin interfaceIterator<T>
-