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 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 AbstractSet
equals, hashCode, removeAllMethods inherited from class AbstractCollection
add, addAll, containsAll, isEmpty, remove, retainAll, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface Set
add, addAll, containsAll, isEmpty, remove, retainAll, spliterator
-
Field Details
-
entryIterator
-
-
Constructor Details
-
EntrySet
public EntrySet()Create a new instance.
-
-
Method Details
-
iterator
-
size
-
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
-