public final class Long2ObjectHashMap.KeySet extends AbstractSet<Long>
| Constructor and Description |
|---|
KeySet() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
contains(long key)
Checks if the key is contained in the map.
|
boolean |
contains(Object o) |
Long2ObjectHashMap.KeyIterator |
iterator() |
boolean |
remove(long 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 Long2ObjectHashMap.KeyIterator iterator()
public int size()
size in interface Collection<Long>size in interface Set<Long>size in class AbstractCollection<Long>public boolean contains(Object o)
contains in interface Collection<Long>contains in interface Set<Long>contains in class AbstractCollection<Long>public boolean contains(long key)
key - to check.true if the key is contained in the map.public boolean remove(Object o)
remove in interface Collection<Long>remove in interface Set<Long>remove in class AbstractCollection<Long>public boolean remove(long key)
key - to be removed.true if the mapping was removed.public void clear()
clear in interface Collection<Long>clear in interface Set<Long>clear in class AbstractCollection<Long>Copyright © 2014-2021 Real Logic Limited. All Rights Reserved.