Class Int2IntHashMap.EntrySet
- All Implemented Interfaces:
Iterable<Map.Entry<Integer,Integer>>, Collection<Map.Entry<Integer, Integer>>, Set<Map.Entry<Integer, Integer>>
- Enclosing class:
Int2IntHashMap
Set of entries which supports optionally cached iterators to avoid allocation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleanbooleanisEmpty()iterator()booleanremoveIfInt(IntIntPredicate 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, remove, retainAll, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface Set
add, addAll, containsAll, remove, retainAll, spliterator
-
Field Details
-
entryIterator
-
-
Constructor Details
-
EntrySet
public EntrySet()Create a new instance.
-
-
Method Details
-
iterator
-
size
-
isEmpty
-
clear
-
contains
-
removeIfInt
Removes all the elements of this collection that satisfy the given predicate.NB: Renamed from removeIf to avoid overloading on parameter types of lambda expression, which doesn't play well with type inference in lambda expressions.
- Parameters:
filter- a predicate to apply.- Returns:
trueif at least one entry was removed.
-
toArray
-
toArray
-