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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleaniterator()booleanremoveIfLong(ObjLongPredicate<? super K> filter) Removes all the elements of this collection that satisfy the given predicate.intsize()Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
add, addAll, containsAll, isEmpty, remove, retainAll, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
add, addAll, containsAll, isEmpty, remove, retainAll, spliterator
-
Constructor Details
-
EntrySet
public EntrySet()Create a new instance.
-
-
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 returnstruefor elements to be removed.- Returns:
trueif any elements were removed.
-
toArray
-
toArray
public <T> T[] toArray(T[] a)
-