Class ImmutableEntryWithHashingStrategy<K,​V>

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

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

      • ImmutableEntryWithHashingStrategy

        public ImmutableEntryWithHashingStrategy​(K key,
                                                 V value,
                                                 HashingStrategy<? super K> hashingStrategy)
    • Method Detail

      • 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