public final class Int2IntHashMap.KeySet extends AbstractSet<Integer>
| Constructor and Description |
|---|
KeySet() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
contains(int key)
Checks if key is contained in the map without boxing.
|
boolean |
contains(Object o) |
boolean |
isEmpty() |
Int2IntHashMap.KeyIterator |
iterator() |
boolean |
removeIfInt(IntPredicate filter)
Removes all the elements of this collection that satisfy the given predicate.
|
int |
size() |
equals, hashCode, removeAlladd, addAll, containsAll, remove, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, containsAll, remove, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic Int2IntHashMap.KeyIterator iterator()
public int size()
size in interface Collection<Integer>size in interface Set<Integer>size in class AbstractCollection<Integer>public boolean isEmpty()
isEmpty in interface Collection<Integer>isEmpty in interface Set<Integer>isEmpty in class AbstractCollection<Integer>public void clear()
clear in interface Collection<Integer>clear in interface Set<Integer>clear in class AbstractCollection<Integer>public boolean contains(Object o)
contains in interface Collection<Integer>contains in interface Set<Integer>contains in class AbstractCollection<Integer>public boolean contains(int key)
key - to check.true if key is contained in this map.public boolean removeIfInt(IntPredicate filter)
NB: Renamed from removeIf to avoid overloading on parameter types of lambda expression, which doesn't play well with type inference in lambda expressions.
filter - a predicate to apply.true if at least one key was removed.Copyright © 2014-2022 Real Logic Limited. All Rights Reserved.