Class ImmutableEntry<K,​V>

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Map.Entry<K,​V>

    public final class ImmutableEntry<K,​V>
    extends AbstractImmutableEntry<K,​V>
    See Also:
    Serialized Form
    • Constructor Detail

      • ImmutableEntry

        public ImmutableEntry​(K key,
                              V value)
    • Method Detail

      • of

        public static <T1,​T2> ImmutableEntry<T1,​T2> of​(T1 key,
                                                                   T2 value)
      • equals

        public boolean equals​(java.lang.Object object)
        Indicates whether an object equals this entry, following the behavior specified in Map.Entry.equals(Object).
        Specified by:
        equals in interface java.util.Map.Entry<K,​V>
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Return this entry's hash code, following the behavior specified in Map.Entry.hashCode().
        Specified by:
        hashCode in interface java.util.Map.Entry<K,​V>
        Overrides:
        hashCode in class java.lang.Object