Class HashingStrategies.IdentityHashingStrategy
java.lang.Object
org.eclipse.collections.impl.block.factory.HashingStrategies.IdentityHashingStrategy
- All Implemented Interfaces:
Serializable, HashingStrategy<Object>
- Enclosing class:
HashingStrategies
private static final class HashingStrategies.IdentityHashingStrategy
extends Object
implements HashingStrategy<Object>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcomputeHashCode(Object 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:
-
-
Constructor Details
-
IdentityHashingStrategy
private IdentityHashingStrategy()
-
-
Method Details
-
computeHashCode
Description copied from interface:HashingStrategyComputes the hashCode of the object as defined by the user.- Specified by:
computeHashCodein interfaceHashingStrategy<Object>
-
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<Object>
-