private class ListMap.Values extends AbstractCollection<V>
ListMap.values().
Like base class AbstractCollection,
this class supports neither Collection.add(Object)
nor Collection.addAll(Collection),
i.e. those methods throw an UnsupportedOperationException.
In contrast, this class supports methods
Set.clear(),
Collection.remove(Object),
Collection.removeAll(Collection) and
Collection.retainAll(Collection).
The iterator returned by iterator()
supports @link Iterator#remove()}.
ListMap.valuesColl| Modifier | Constructor and Description |
|---|---|
private |
Values() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears actually the enclosing
ListMap
delegating to ListMap.clear(). |
boolean |
contains(Object obj)
Returns actually whether
obj
is a value of the enclosing ListMap
delegating to ListMap.containsValue(Object). |
Iterator<V> |
iterator()
Returns actually an instance of
ListMap.ValuesIterator. |
boolean |
remove(Object obj)
Interpretes
obj as value
of the enclosing ListMap
and removes the first according key-value pair if present. |
int |
size()
Returns actually the size of the enclosing
ListMap
delegating to ListMap.size(). |
add, addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic Iterator<V> iterator()
ListMap.ValuesIterator.iterator in interface Iterable<V>iterator in interface Collection<V>iterator in class AbstractCollection<V>public int size()
ListMap
delegating to ListMap.size().size in interface Collection<V>size in class AbstractCollection<V>public boolean contains(Object obj)
obj
is a value of the enclosing ListMap
delegating to ListMap.containsValue(Object).contains in interface Collection<V>contains in class AbstractCollection<V>public boolean remove(Object obj)
obj as value
of the enclosing ListMap
and removes the first according key-value pair if present.
Returns whether the according key-value pair was present
when invoking this method invoking using
ListMap.removeIdx(int).remove in interface Collection<V>remove in class AbstractCollection<V>public void clear()
ListMap
delegating to ListMap.clear().clear in interface Collection<V>clear in class AbstractCollection<V>Copyright © 2012–2018 Simuline Organization (l2r). All rights reserved.