Package org.agrona.collections
Class Object2LongHashMap.EntrySet
- All Implemented Interfaces:
Iterable<Map.Entry<K,
,Long>> Collection<Map.Entry<K,
,Long>> Set<Map.Entry<K,
Long>>
- Enclosing class:
Object2LongHashMap<K>
Set of entries which can optionally cache iterators to avoid allocation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
iterator()
boolean
removeIfLong
(ObjLongPredicate<? super K> filter) Removes all the elements of this collection that satisfy the given predicate.int
size()
Object[]
toArray()
<T> T[]
toArray
(T[] a) Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
add, addAll, containsAll, isEmpty, remove, retainAll, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
add, addAll, containsAll, isEmpty, remove, retainAll, spliterator
-
Field Details
-
entryIterator
-
-
Constructor Details
-
EntrySet
public EntrySet()
-
-
Method Details
-
iterator
-
size
public int size() -
clear
public void clear() -
contains
-
removeIfLong
Removes all the elements of this collection that satisfy the given predicate.- Parameters:
filter
- a predicate which returnstrue
for elements to be removed.- Returns:
true
if any elements were removed.
-
toArray
-
toArray
public <T> T[] toArray(T[] a)
-