static class MapConstraints.ConstrainedMap<K,V> extends ForwardingMap<K,V>
ForwardingMap.StandardEntrySet, ForwardingMap.StandardKeySet, ForwardingMap.StandardValues
Modifier and Type | Field and Description |
---|---|
(package private) MapConstraint<? super K,? super V> |
constraint |
private java.util.Map<K,V> |
delegate |
private java.util.Set<java.util.Map.Entry<K,V>> |
entrySet |
Constructor and Description |
---|
ConstrainedMap(java.util.Map<K,V> delegate,
MapConstraint<? super K,? super V> constraint) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<K,V> |
delegate()
Returns the backing delegate instance that methods are forwarded to.
|
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
V |
put(K key,
V value) |
void |
putAll(java.util.Map<? extends K,? extends V> map) |
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, remove, size, standardClear, standardContainsKey, standardContainsValue, standardEquals, standardHashCode, standardIsEmpty, standardPutAll, standardRemove, standardToString, values
toString
final MapConstraint<? super K,? super V> constraint
ConstrainedMap(java.util.Map<K,V> delegate, MapConstraint<? super K,? super V> constraint)
protected java.util.Map<K,V> delegate()
ForwardingObject
ForwardingSet.delegate()
. Concrete subclasses override this method to supply
the instance being decorated.delegate
in class ForwardingMap<K,V>