protected class AbstractKeyBasedMap.ValuesCollection extends AbstractCollection<V>
| Modifier and Type | Class and Description | 
|---|---|
protected class  | 
AbstractKeyBasedMap.ValuesCollection.ValuesIterator
An Iterator over the values Collection that is backed by the
 AbstractKeyBasedMap. 
 | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
ValuesCollection()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
clear()
Removes all of the elements from this Collection by clearing the
 underlying Map. 
 | 
boolean | 
contains(Object o)
Returns true if this collection contains the specified
 element. 
 | 
protected Iterator<V> | 
instantiateIterator()
Factory pattern: Create a values Iterator. 
 | 
boolean | 
isEmpty()
Returns true if this Set is empty. 
 | 
Iterator<V> | 
iterator()
Returns an iterator over the elements contained in this collection. 
 | 
boolean | 
remove(Object o)
Removes the specified element from this Collection of values if it
 is present by removing the associated key/value mapping from the
 underlying Map. 
 | 
int | 
size()
Returns the number of elements in this collection. 
 | 
add, addAll, containsAll, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic void clear()
clear in interface Collection<V>clear in class AbstractCollection<V>public boolean contains(Object o)
contains in interface Collection<V>contains in class AbstractCollection<V>o - object to be checked for containment in this collectionpublic boolean isEmpty()
isEmpty in interface Collection<V>isEmpty in class AbstractCollection<V>public Iterator<V> iterator()
iterator in interface Iterable<V>iterator in interface Collection<V>iterator in class AbstractCollection<V>public boolean remove(Object o)
remove in interface Collection<V>remove in class AbstractCollection<V>o - object to be removed from this Collection, if presentpublic int size()
size in interface Collection<V>size in class AbstractCollection<V>