Class ForwardingMapEntry<K,V>
- All Implemented Interfaces:
Map.Entry<K,V>
Warning: The methods of ForwardingMapEntry forward
indiscriminately to the methods of the delegate. For example,
overriding getValue() alone will not change the behavior of
equals(Object), which can lead to unexpected behavior. In this case, you
should override equals as well, either providing your own
implementation, or delegating to the provided standardEquals method.
Each of the standard methods, where appropriate, use
invalid reference
Objects#equalSortedMap whose comparator is
not consistent with equals.
The standard methods are not guaranteed to be thread-safe, even
when all of the methods that they depend on are thread-safe.
- Since:
- 2.0 (imported from Google Collections Library)
- Author:
- Mike Bostock, Louis Wasserman
-
Method Details
-
delegate
Returns the backing delegate instance that methods are forwarded to. Abstract subclasses generally override this method with an abstract method that has a more specific return type, such asForwardingSet.delegate(). Concrete subclasses override this method to supply the instance being decorated. -
getKey
-
getValue
-
setValue
-
equals
-
hashCode
-
toString
-