Class AbstractMapEntryDecorator

  • All Implemented Interfaces:
    java.util.Map.Entry, KeyValue

    @Deprecated(since="2021-04-30")
    public abstract class AbstractMapEntryDecorator
    extends java.lang.Object
    implements java.util.Map.Entry, KeyValue
    Deprecated.
    Commons Collections 3 is in maintenance mode. Commons Collections 4 should be used instead.
    Provides a base decorator that allows additional functionality to be added to a Map.Entry.
    Since:
    Commons Collections 3.0
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractMapEntryDecorator​(java.util.Map.Entry entry)
      Deprecated.
      Constructor that wraps (not copies).
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object object)
      Deprecated.
       
      java.lang.Object getKey()
      Deprecated.
      Gets the key from the pair.
      java.lang.Object getValue()
      Deprecated.
      Gets the value from the pair.
      int hashCode()
      Deprecated.
       
      java.lang.Object setValue​(java.lang.Object object)
      Deprecated.
       
      java.lang.String toString()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AbstractMapEntryDecorator

        public AbstractMapEntryDecorator​(java.util.Map.Entry entry)
        Deprecated.
        Constructor that wraps (not copies).
        Parameters:
        entry - the Map.Entry to decorate, must not be null
        Throws:
        java.lang.IllegalArgumentException - if the collection is null
    • Method Detail

      • getKey

        public java.lang.Object getKey()
        Deprecated.
        Description copied from interface: KeyValue
        Gets the key from the pair.
        Specified by:
        getKey in interface KeyValue
        Specified by:
        getKey in interface java.util.Map.Entry
        Returns:
        the key
      • getValue

        public java.lang.Object getValue()
        Deprecated.
        Description copied from interface: KeyValue
        Gets the value from the pair.
        Specified by:
        getValue in interface KeyValue
        Specified by:
        getValue in interface java.util.Map.Entry
        Returns:
        the value
      • setValue

        public java.lang.Object setValue​(java.lang.Object object)
        Deprecated.
        Specified by:
        setValue in interface java.util.Map.Entry
      • equals

        public boolean equals​(java.lang.Object object)
        Deprecated.
        Specified by:
        equals in interface java.util.Map.Entry
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated.
        Specified by:
        hashCode in interface java.util.Map.Entry
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object