Class ImmutableEntryWithHashingStrategy<K,V>
java.lang.Object
org.eclipse.collections.impl.tuple.AbstractImmutableEntry<K,V>
org.eclipse.collections.impl.map.strategy.immutable.ImmutableEntryWithHashingStrategy<K,V>
- All Implemented Interfaces:
Serializable, Map.Entry<K,V>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HashingStrategy<? super K> private static final longFields inherited from class AbstractImmutableEntry
key, value -
Constructor Summary
ConstructorsConstructorDescriptionImmutableEntryWithHashingStrategy(K key, V value, HashingStrategy<? super K> hashingStrategy) -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether an object equals this entry, following the behavior specified inMap.Entry.equals(Object).inthashCode()Return this entry's hash code, following the behavior specified inMap.Entry.hashCode().static <T1,T2> ImmutableEntryWithHashingStrategy <T1, T2> of(T1 key, T2 value, HashingStrategy<? super T1> hashingStrategy) Methods inherited from class AbstractImmutableEntry
getKey, getKeyFunction, getPairFunction, getValue, getValueFunction, setValue, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
hashingStrategy
-
-
Constructor Details
-
ImmutableEntryWithHashingStrategy
public ImmutableEntryWithHashingStrategy(K key, V value, HashingStrategy<? super K> hashingStrategy)
-
-
Method Details
-
of
public static <T1,T2> ImmutableEntryWithHashingStrategy<T1,T2> of(T1 key, T2 value, HashingStrategy<? super T1> hashingStrategy) -
equals
-
hashCode
-