Class HashingStrategies.NullSafeFunctionHashingStrategy<T,V>
java.lang.Object
org.eclipse.collections.impl.block.factory.HashingStrategies.NullSafeFunctionHashingStrategy<T,V>
- All Implemented Interfaces:
Serializable
,HashingStrategy<T>
- Enclosing class:
HashingStrategies
private static final class HashingStrategies.NullSafeFunctionHashingStrategy<T,V>
extends Object
implements HashingStrategy<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
NullSafeFunctionHashingStrategy
(Function<? super T, ? extends V> 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
-
NullSafeFunctionHashingStrategy
-
-
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>
-