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:
java.io.Serializable,java.util.Map.Entry<K,V>
public final class ImmutableEntryWithHashingStrategy<K,V> extends AbstractImmutableEntry<K,V>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private HashingStrategy<? super K>hashingStrategyprivate static longserialVersionUID-
Fields inherited from class org.eclipse.collections.impl.tuple.AbstractImmutableEntry
key, value
-
-
Constructor Summary
Constructors Constructor Description ImmutableEntryWithHashingStrategy(K key, V value, HashingStrategy<? super K> hashingStrategy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)Indicates 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 org.eclipse.collections.impl.tuple.AbstractImmutableEntry
getKey, getKeyFunction, getPairFunction, getValue, getValueFunction, setValue, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
hashingStrategy
private final HashingStrategy<? super K> hashingStrategy
-
-
Constructor Detail
-
ImmutableEntryWithHashingStrategy
public ImmutableEntryWithHashingStrategy(K key, V value, HashingStrategy<? super K> hashingStrategy)
-
-
Method Detail
-
of
public static <T1,T2> ImmutableEntryWithHashingStrategy<T1,T2> of(T1 key, T2 value, HashingStrategy<? super T1> hashingStrategy)
-
equals
public boolean equals(java.lang.Object object)
Indicates whether an object equals this entry, following the behavior specified inMap.Entry.equals(Object).
-
-