class AbstractMultiValuedMap.WrappedCollection
extends java.lang.Object
implements java.util.Collection<V>
Currently, the wrapped collection is not cached and has to be retrieved from the underlying map. This is safe, but not very efficient and should be improved in subsequent releases. For this purpose, the scope of this collection is set to package private to simplify later refactoring.
| Constructor and Description |
|---|
WrappedCollection(K key) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(V value) |
boolean |
addAll(java.util.Collection<? extends V> other) |
void |
clear() |
boolean |
contains(java.lang.Object obj) |
boolean |
containsAll(java.util.Collection<?> other) |
protected java.util.Collection<V> |
getMapping() |
boolean |
isEmpty() |
java.util.Iterator<V> |
iterator() |
boolean |
remove(java.lang.Object item) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprotected final K key
public WrappedCollection(K key)
protected java.util.Collection<V> getMapping()
public boolean addAll(java.util.Collection<? extends V> other)
addAll in interface java.util.Collection<V>public void clear()
clear in interface java.util.Collection<V>public java.util.Iterator<V> iterator()
public int size()
size in interface java.util.Collection<V>public boolean contains(java.lang.Object obj)
contains in interface java.util.Collection<V>public boolean containsAll(java.util.Collection<?> other)
containsAll in interface java.util.Collection<V>public boolean isEmpty()
isEmpty in interface java.util.Collection<V>public boolean remove(java.lang.Object item)
remove in interface java.util.Collection<V>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<V>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<V>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<V>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<V>public java.lang.String toString()
toString in class java.lang.Object