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 TypeMethodDescriptionint
computeHashCode
(Object 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:
-
-
Constructor Details
-
IdentityHashingStrategy
private IdentityHashingStrategy()
-
-
Method Details
-
computeHashCode
Description copied from interface:HashingStrategy
Computes the hashCode of the object as defined by the user.- Specified by:
computeHashCode
in interfaceHashingStrategy<Object>
-
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<Object>
-