private static class MapConstraints.ConstrainedEntries<K,V> extends ForwardingCollection<java.util.Map.Entry<K,V>>
Modifier and Type | Field and Description |
---|---|
(package private) MapConstraint<? super K,? super V> |
constraint |
(package private) java.util.Collection<java.util.Map.Entry<K,V>> |
entries |
Constructor and Description |
---|
ConstrainedEntries(java.util.Collection<java.util.Map.Entry<K,V>> entries,
MapConstraint<? super K,? super V> constraint) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
protected java.util.Collection<java.util.Map.Entry<K,V>> |
delegate()
Returns the backing delegate instance that methods are forwarded to.
|
java.util.Iterator<java.util.Map.Entry<K,V>> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
add, addAll, clear, isEmpty, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRemoveAll, standardRetainAll, standardToArray, standardToArray, standardToString
toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
final MapConstraint<? super K,? super V> constraint
ConstrainedEntries(java.util.Collection<java.util.Map.Entry<K,V>> entries, MapConstraint<? super K,? super V> constraint)
protected java.util.Collection<java.util.Map.Entry<K,V>> delegate()
ForwardingObject
ForwardingSet.delegate()
. Concrete subclasses override this method to supply
the instance being decorated.delegate
in class ForwardingCollection<java.util.Map.Entry<K,V>>
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] array)
public boolean contains(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<java.util.Map.Entry<K,V>>
containsAll
in class ForwardingCollection<java.util.Map.Entry<K,V>>
public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> c)