Package org.agrona.collections
Class Long2ObjectCache.ValueCollection
- java.lang.Object
-
- java.util.AbstractCollection<V>
-
- org.agrona.collections.Long2ObjectCache.ValueCollection
-
- All Implemented Interfaces:
java.lang.Iterable<V>
,java.util.Collection<V>
- Enclosing class:
- Long2ObjectCache<V>
public final class Long2ObjectCache.ValueCollection extends java.util.AbstractCollection<V>
Collection of values which supports cached iterator to avoid allocation.
-
-
Field Summary
Fields Modifier and Type Field Description private Long2ObjectCache.ValueIterator
iterator
-
Constructor Summary
Constructors Constructor Description ValueCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
contains(java.lang.Object o)
Long2ObjectCache.ValueIterator
iterator()
boolean
remove(java.lang.Object o)
boolean
removeIf(java.util.function.Predicate<? super V> filter)
int
size()
-
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
-
-
-
-
Field Detail
-
iterator
private final Long2ObjectCache.ValueIterator iterator
-
-
Method Detail
-
size
public int size()
-
contains
public boolean contains(java.lang.Object o)
-
iterator
public Long2ObjectCache.ValueIterator iterator()
-
clear
public void clear()
-
remove
public boolean remove(java.lang.Object o)
-
removeIf
public boolean removeIf(java.util.function.Predicate<? super V> filter)
-
-