Class AbstractMapEntry

    • Method Detail

      • setValue

        public Object setValue​(Object value)
        Deprecated.
        Sets the value stored in this Map.Entry.

        This Map.Entry is not connected to a Map, so only the local data is changed.

        Specified by:
        setValue in interface Map.Entry
        Parameters:
        value - the new value
        Returns:
        the previous value
      • 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