public final class Int2ObjectHashMap.KeySet extends AbstractSet<Integer>
| Constructor and Description |
|---|
KeySet() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
contains(int key)
Checks if the key is contained in the map.
|
boolean |
contains(Object o) |
Int2ObjectHashMap.KeyIterator |
iterator() |
boolean |
remove(int key)
Removes key and the corresponding value from the map.
|
boolean |
remove(Object o) |
int |
size() |
equals, hashCode, removeAlladd, addAll, containsAll, isEmpty, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, containsAll, isEmpty, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic Int2ObjectHashMap.KeyIterator iterator()
public int size()
size in interface Collection<Integer>size in interface Set<Integer>size 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 the key is contained in the map.public boolean remove(Object o)
remove in interface Collection<Integer>remove in interface Set<Integer>remove in class AbstractCollection<Integer>public boolean remove(int key)
key - to be removed.true if the mapping was removed.public void clear()
clear in interface Collection<Integer>clear in interface Set<Integer>clear in class AbstractCollection<Integer>Copyright © 2014-2022 Real Logic Limited. All Rights Reserved.