Class AbstractKeyValue

  • All Implemented Interfaces:
    KeyValue
    Direct Known Subclasses:
    AbstractMapEntry, DefaultKeyValue

    @Deprecated(since="2021-04-30")
    public abstract class AbstractKeyValue
    extends java.lang.Object
    implements KeyValue
    Deprecated.
    Apache Commons Collections version 3.x is being deprecated from AEMaaCS. The upgraded version 4.4 of Commons Collections is already included as replacement. Customers are advised to upgrade to this version of the library. Please note: the package name was changed to org.apache.commons.collections4. Further note that there are AEM APIs currently exposing the old collections classes; these will be updated in upcoming releases.
    Abstract pair class to assist with creating KeyValue and Map.Entry implementations.
    Since:
    Commons Collections 3.0
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.Object getKey()
      Deprecated.
      Gets the key from the pair.
      java.lang.Object getValue()
      Deprecated.
      Gets the value from the pair.
      java.lang.String toString()
      Deprecated.
      Gets a debugging String view of the pair.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getKey

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

        public java.lang.Object getValue()
        Deprecated.
        Gets the value from the pair.
        Specified by:
        getValue in interface KeyValue
        Returns:
        the value
      • toString

        public java.lang.String toString()
        Deprecated.
        Gets a debugging String view of the pair.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a String view of the entry