Package org.agrona.collections
Class Long2ObjectCache.EntryIterator
- java.lang.Object
-
- org.agrona.collections.Long2ObjectCache.AbstractIterator<java.util.Map.Entry<java.lang.Long,V>>
-
- org.agrona.collections.Long2ObjectCache.EntryIterator
-
- All Implemented Interfaces:
java.util.Iterator<java.util.Map.Entry<java.lang.Long,V>>
,java.util.Map.Entry<java.lang.Long,V>
- Enclosing class:
- Long2ObjectCache<V>
public final class Long2ObjectCache.EntryIterator extends Long2ObjectCache.AbstractIterator<java.util.Map.Entry<java.lang.Long,V>> implements java.util.Map.Entry<java.lang.Long,V>
Iterator over entries which supports access to unboxed keys viagetLongKey()
.
-
-
Constructor Summary
Constructors Constructor Description EntryIterator()
Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Long
getKey()
long
getLongKey()
Get key of the current entry.V
getValue()
java.util.Map.Entry<java.lang.Long,V>
next()
V
setValue(V value)
-
Methods inherited from class org.agrona.collections.Long2ObjectCache.AbstractIterator
findNext, hasNext, position, remove, reset
-
-
-
-
Method Detail
-
next
public java.util.Map.Entry<java.lang.Long,V> next()
- Specified by:
next
in interfacejava.util.Iterator<java.util.Map.Entry<java.lang.Long,V>>
- Specified by:
next
in classLong2ObjectCache.AbstractIterator<java.util.Map.Entry<java.lang.Long,V>>
-
getKey
public java.lang.Long getKey()
- Specified by:
getKey
in interfacejava.util.Map.Entry<java.lang.Long,V>
-
getLongKey
public long getLongKey()
Get key of the current entry.- Returns:
- key of the current entry.
-
getValue
public V getValue()
- Specified by:
getValue
in interfacejava.util.Map.Entry<java.lang.Long,V>
-
-