Class AbstractMapEntryDecorator<K,V>

java.lang.Object
org.apache.commons.collections4.keyvalue.AbstractMapEntryDecorator<K,V>
Type Parameters:
K - the type of keys
V - the type of mapped values
All Implemented Interfaces:
Map.Entry<K,V>, KeyValue<K,V>
Direct Known Subclasses:
AbstractDualBidiMap.MapEntry, AbstractInputCheckedMapDecorator.MapEntry, UnmodifiableEntrySet.UnmodifiableEntry

public abstract class AbstractMapEntryDecorator<K,V> extends Object implements Map.Entry<K,V>, KeyValue<K,V>
Provides a base decorator that allows additional functionality to be added to a Map.Entry.
Since:
3.0
  • Field Details

    • entry

      private final Map.Entry<K,V> entry
      The Map.Entry to decorate
  • Constructor Details

    • AbstractMapEntryDecorator

      public AbstractMapEntryDecorator(Map.Entry<K,V> entry)
      Constructor that wraps (not copies).
      Parameters:
      entry - the Map.Entry to decorate, must not be null
      Throws:
      NullPointerException - if the collection is null
  • Method Details