Class AbstractKeyValue

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

    @Deprecated(since="2021-04-30")
    public abstract class AbstractKeyValue
    extends Object
    implements KeyValue
    Deprecated.
    Commons Collections 3 is in maintenance mode. Commons Collections 4 should be used instead.
    Abstract pair class to assist with creating KeyValue and Map.Entry implementations.
    Since:
    Commons Collections 3.0
    • Method Detail

      • getKey

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

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

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