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