Class TiedMapEntry

    • Constructor Detail

      • TiedMapEntry

        public TiedMapEntry​(Map map,
                            Object key)
        Deprecated.
        Constructs a new entry with the given Map and key.
        Parameters:
        map - the map
        key - the key
    • Method Detail

      • getKey

        public Object getKey()
        Deprecated.
        Gets the key of this entry
        Specified by:
        getKey in interface KeyValue
        Specified by:
        getKey in interface Map.Entry
        Returns:
        the key
      • getValue

        public Object getValue()
        Deprecated.
        Gets the value of this entry direct from the map.
        Specified by:
        getValue in interface KeyValue
        Specified by:
        getValue in interface Map.Entry
        Returns:
        the value
      • setValue

        public Object setValue​(Object value)
        Deprecated.
        Sets the value associated with the key direct onto the map.
        Specified by:
        setValue in interface Map.Entry
        Parameters:
        value - the new value
        Returns:
        the old value
        Throws:
        IllegalArgumentException - if the value is set to this map entry
      • equals

        public boolean equals​(Object obj)
        Deprecated.
        Compares this Map.Entry with another Map.Entry.

        Implemented per API documentation of Map.Entry.equals(Object)

        Specified by:
        equals in interface Map.Entry
        Overrides:
        equals in class Object
        Parameters:
        obj - the object to compare to
        Returns:
        true if equal key and value
      • hashCode

        public int hashCode()
        Deprecated.
        Gets a hashCode compatible with the equals method.

        Implemented per API documentation of Map.Entry.hashCode()

        Specified by:
        hashCode in interface Map.Entry
        Overrides:
        hashCode in class Object
        Returns:
        a suitable hash code
      • toString

        public String toString()
        Deprecated.
        Gets a string version of the entry.
        Overrides:
        toString in class Object
        Returns:
        entry as a string