protected class AbstractKeyBasedMap.KeySet extends AbstractSet<K>
| Modifier | Constructor and Description | 
|---|---|
protected  | 
KeySet()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
clear()
Removes all of the elements from this set of Keys by clearing the
 underlying Map. 
 | 
boolean | 
contains(Object o)
Returns true if this collection contains the specified
 element. 
 | 
boolean | 
isEmpty()
Returns true if this Set is empty. 
 | 
Iterator<K> | 
iterator()
Returns an iterator over the elements contained in this collection. 
 | 
boolean | 
remove(Object o)
Removes the specified element from this Set of keys if it is
 present by removing the associated key from the underlying
 Map. 
 | 
int | 
size()
Returns the number of elements in this collection. 
 | 
equals, hashCode, removeAlladd, addAll, containsAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, containsAll, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic void clear()
clear in interface Collection<K>clear in interface Set<K>clear in class AbstractCollection<K>public boolean contains(Object o)
contains in interface Collection<K>contains in interface Set<K>contains in class AbstractCollection<K>o - object to be checked for containment in this collectionpublic boolean isEmpty()
isEmpty in interface Collection<K>isEmpty in interface Set<K>isEmpty in class AbstractCollection<K>public Iterator<K> iterator()
public boolean remove(Object o)
remove in interface Collection<K>remove in interface Set<K>remove in class AbstractCollection<K>o - object to be removed from this set, if presentpublic int size()
size in interface Collection<K>size in interface Set<K>size in class AbstractCollection<K>