Class BinaryAbstractIdentityResolver
- java.lang.Object
-
- org.apache.ignite.internal.binary.BinaryAbstractIdentityResolver
-
- All Implemented Interfaces:
BinaryIdentityResolver
- Direct Known Subclasses:
BinaryArrayIdentityResolver
public abstract class BinaryAbstractIdentityResolver extends Object implements BinaryIdentityResolver
Abstract identity resolver with common routines.
-
-
Constructor Summary
Constructors Constructor Description BinaryAbstractIdentityResolver()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(BinaryObject o1, BinaryObject o2)Compare two binary objects for equality.protected abstract booleanequals0(BinaryObject o1, BinaryObject o2)Internal equals routine.inthashCode(BinaryObject obj)Compute hash code for binary object.protected abstract inthashCode0(BinaryObject obj)Internal hash code routine.
-
-
-
Method Detail
-
hashCode
public int hashCode(BinaryObject obj)
Compute hash code for binary object.- Specified by:
hashCodein interfaceBinaryIdentityResolver- Parameters:
obj- Binary object.- Returns:
- Hash code value.
-
equals
public boolean equals(BinaryObject o1, BinaryObject o2)
Compare two binary objects for equality.- Specified by:
equalsin interfaceBinaryIdentityResolver- Parameters:
o1- First object.o2- Second object.- Returns:
Trueif both objects are equal.
-
hashCode0
protected abstract int hashCode0(BinaryObject obj)
Internal hash code routine.- Parameters:
obj- Object.- Returns:
- Result.
-
equals0
protected abstract boolean equals0(BinaryObject o1, BinaryObject o2)
Internal equals routine.- Parameters:
o1- First object.o2- Second object.- Returns:
- Result.
-
-