Class MapEntry<K,​V>

    • Constructor Detail

      • MapEntry

        public MapEntry​(K key,
                        V value)
        Deprecated.
        Construct a new instance.
        Parameters:
        key - the map key
        value - the map value
    • Method Detail

      • entry

        public static <K,​V> MapEntry<K,​V> entry​(K key,
                                                            V value)
        Deprecated.
        Construct a new instance.
        Type Parameters:
        K - the key type
        V - the value type
        Parameters:
        key - the map key
        value - the map value
        Returns:
        the entry
      • getKey

        public K getKey()
        Deprecated.
        Get the map key.
        Specified by:
        getKey in interface Map.Entry<K,​V>
        Returns:
        the map key
      • getValue

        public V getValue()
        Deprecated.
        Get the map value.
        Specified by:
        getValue in interface Map.Entry<K,​V>
        Returns:
        the map value
      • equals

        public boolean equals​(Object obj)
        Deprecated.
        Compare this entry with another.
        Specified by:
        equals in interface Map.Entry<K,​V>
        Overrides:
        equals in class Object
        Parameters:
        obj - the other entry
        Returns:
        true if this object equals the other MapEntry instance, false otherwise
      • equals

        public boolean equals​(MapEntry<?,​?> obj)
        Deprecated.
        Compare this entry with another.
        Parameters:
        obj - the other entry
        Returns:
        true if this object equals the other MapEntry instance, false otherwise
      • hashCode

        public int hashCode()
        Deprecated.
        Get the hash code of this object.
        Specified by:
        hashCode in interface Map.Entry<K,​V>
        Overrides:
        hashCode in class Object
        Returns:
        the hash code
      • addTo

        public static <K,​V> Map<K,​V> addTo​(Map<K,​V> map,
                                                       MapEntry<? extends K,​? extends V>... entries)
        Deprecated.
        Add entries to a map.
        Type Parameters:
        K - the key type
        V - the value type
        Parameters:
        map - the map to add to
        entries - the entries to add
        Returns:
        the map