Class HashingStrategies.ShortFunctionHashingStrategy<T>
java.lang.Object
org.eclipse.collections.impl.block.factory.HashingStrategies.ShortFunctionHashingStrategy<T>
- All Implemented Interfaces:
Serializable, HashingStrategy<T>
- Enclosing class:
HashingStrategies
private static final class HashingStrategies.ShortFunctionHashingStrategy<T>
extends Object
implements HashingStrategy<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ShortFunction<? super T> private static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateShortFunctionHashingStrategy(ShortFunction<? super T> function) -
Method Summary
Modifier and TypeMethodDescriptionintcomputeHashCode(T object) Computes the hashCode of the object as defined by the user.booleanChecks two objects for equality.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
function
-
-
Constructor Details
-
ShortFunctionHashingStrategy
-
-
Method Details
-
computeHashCode
Description copied from interface:HashingStrategyComputes the hashCode of the object as defined by the user.- Specified by:
computeHashCodein interfaceHashingStrategy<T>
-
equals
Description copied from interface:HashingStrategyChecks two objects for equality. The equality check can use the objects own equals() method or a custom method defined by the user. It should be consistent with the computeHashCode() method.- Specified by:
equalsin interfaceHashingStrategy<T>
-