K - the type of keys maintained by this mapV - the type of mapped valuesprotected static class AbstractHashMap.KeySet<K,V> extends AbstractSet<K>
| Modifier and Type | Field and Description |
|---|---|
protected AbstractHashMap<K,V> |
parent
The parent map
|
| Modifier | Constructor and Description |
|---|---|
protected |
KeySet(AbstractHashMap<K,V> parent)
Constructs new
AbstractHashMap.KeySet. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
contains(Object key) |
Iterator<K> |
iterator() |
boolean |
remove(Object key) |
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, streamprotected final AbstractHashMap<K,V> parent
protected KeySet(AbstractHashMap<K,V> parent)
AbstractHashMap.KeySet.parent - AbstractHashMappublic int size()
size in interface Collection<K>size in interface Set<K>size in class AbstractCollection<K>public void clear()
clear in interface Collection<K>clear in interface Set<K>clear in class AbstractCollection<K>public boolean contains(Object key)
contains in interface Collection<K>contains in interface Set<K>contains in class AbstractCollection<K>public boolean remove(Object key)
remove in interface Collection<K>remove in interface Set<K>remove in class AbstractCollection<K>Copyright © 2020. All rights reserved.