Class ConcurrentLong2ReferenceChainedHashTable.BaseIteratorImpl<V,T>
java.lang.Object
ca.spottedleaf.concurrentutil.map.ConcurrentLong2ReferenceChainedHashTable.NodeIterator<V>
ca.spottedleaf.concurrentutil.map.ConcurrentLong2ReferenceChainedHashTable.BaseIteratorImpl<V,T>
- All Implemented Interfaces:
Iterator<T>
- Direct Known Subclasses:
ConcurrentLong2ReferenceChainedHashTable.EntryIterator,ConcurrentLong2ReferenceChainedHashTable.KeyIterator,ConcurrentLong2ReferenceChainedHashTable.ValueIterator
- Enclosing class:
ConcurrentLong2ReferenceChainedHashTable<V>
protected abstract static class ConcurrentLong2ReferenceChainedHashTable.BaseIteratorImpl<V,T>
extends ConcurrentLong2ReferenceChainedHashTable.NodeIterator<V>
implements Iterator<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.spottedleaf.concurrentutil.map.ConcurrentLong2ReferenceChainedHashTable.NodeIterator
ConcurrentLong2ReferenceChainedHashTable.NodeIterator.ResizeChain<V> -
Field Summary
FieldsFields inherited from class ca.spottedleaf.concurrentutil.map.ConcurrentLong2ReferenceChainedHashTable.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 ConcurrentLong2ReferenceChainedHashTable.TableEntry<V> nextNode()final voidremove()Methods inherited from class ca.spottedleaf.concurrentutil.map.ConcurrentLong2ReferenceChainedHashTable.NodeIterator
findNext
-
Field Details
-
map
-
lastReturned
-
nextToReturn
-
-
Constructor Details
-
BaseIteratorImpl
-
-
Method Details
-
hasNext
public final boolean hasNext() -
nextNode
protected final ConcurrentLong2ReferenceChainedHashTable.TableEntry<V> nextNode() throws NoSuchElementException- Throws:
NoSuchElementException
-
remove
public final void remove() -
next
- Specified by:
nextin interfaceIterator<V>- Throws:
NoSuchElementException
-
forEachRemaining
- Specified by:
forEachRemainingin interfaceIterator<V>
-