public final class Long2ObjectHashMap.KeySet extends AbstractSet<Long> implements Serializable
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, removeAll
add, addAll, containsAll, isEmpty, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public 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.