Class Long2ObjectCache.ValueCollection
java.lang.Object
java.util.AbstractCollection<V>
org.agrona.collections.Long2ObjectCache.ValueCollection
- All Implemented Interfaces:
Iterable<V>, Collection<V>
- Enclosing class:
Long2ObjectCache<V>
Collection of values which supports cached iterator to avoid allocation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractCollection
add, addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Collection
equals, hashCode, parallelStream, spliterator, stream, toArray
-
Field Details
-
iterator
-
-
Constructor Details
-
ValueCollection
public ValueCollection()Create a new instance.
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<V>- Specified by:
sizein classAbstractCollection<V>
-
contains
- Specified by:
containsin interfaceCollection<V>- Overrides:
containsin classAbstractCollection<V>
-
iterator
- Specified by:
iteratorin interfaceCollection<V>- Specified by:
iteratorin interfaceIterable<V>- Specified by:
iteratorin classAbstractCollection<V>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<V>- Overrides:
clearin classAbstractCollection<V>
-
remove
- Specified by:
removein interfaceCollection<V>- Overrides:
removein classAbstractCollection<V>
-
removeIf
-