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
ConstructorsModifierConstructorDescriptionprivate
ShortFunctionHashingStrategy
(ShortFunction<? super T> function) -
Method Summary
Modifier and TypeMethodDescriptionint
computeHashCode
(T object) Computes the hashCode of the object as defined by the user.boolean
Checks 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:HashingStrategy
Computes the hashCode of the object as defined by the user.- Specified by:
computeHashCode
in interfaceHashingStrategy<T>
-
equals
Description copied from interface:HashingStrategy
Checks 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:
equals
in interfaceHashingStrategy<T>
-