Interface KeyValue

  • All Known Implementing Classes:
    AbstractKeyValue, AbstractMapEntry, AbstractMapEntryDecorator, DefaultKeyValue, DefaultMapEntry, DefaultMapEntry, SingletonMap, TiedMapEntry, UnmodifiableMapEntry

    @Deprecated(since="2021-04-30")
    public interface 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.
    Defines a simple key value pair.

    A Map Entry has considerable additional semantics over and above a simple key-value pair. This interface defines the minimum key value, with just the two get methods.

    Since:
    Commons Collections 3.0
    • Method Detail

      • getKey

        java.lang.Object getKey()
        Deprecated.
        Gets the key from the pair.
        Returns:
        the key
      • getValue

        java.lang.Object getValue()
        Deprecated.
        Gets the value from the pair.
        Returns:
        the value