Class BinaryArrayIdentityResolver
- java.lang.Object
-
- org.apache.ignite.internal.binary.BinaryAbstractIdentityResolver
-
- org.apache.ignite.internal.binary.BinaryArrayIdentityResolver
-
- All Implemented Interfaces:
BinaryIdentityResolver
public class BinaryArrayIdentityResolver extends BinaryAbstractIdentityResolver
Identity resolver implementation which compares raw array content of the binary object.Hash code is calculated in the same way as
Arrays.hashCode(byte[])does.
-
-
Constructor Summary
Constructors Constructor Description BinaryArrayIdentityResolver()Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanequals0(BinaryObject o1, BinaryObject o2)Internal equals routine.inthashCode(byte[] data, int startPos, int endPos)protected inthashCode0(BinaryObject obj)Internal hash code routine.static BinaryArrayIdentityResolverinstance()Get singleton instance.StringtoString()-
Methods inherited from class org.apache.ignite.internal.binary.BinaryAbstractIdentityResolver
equals, hashCode
-
-
-
-
Method Detail
-
instance
public static BinaryArrayIdentityResolver instance()
Get singleton instance.- Returns:
- Singleton instance.
-
hashCode0
protected int hashCode0(BinaryObject obj)
Internal hash code routine.- Specified by:
hashCode0in classBinaryAbstractIdentityResolver- Parameters:
obj- Object.- Returns:
- Result.
-
hashCode
public int hashCode(byte[] data, int startPos, int endPos)
-
equals0
protected boolean equals0(BinaryObject o1, BinaryObject o2)
Internal equals routine.- Specified by:
equals0in classBinaryAbstractIdentityResolver- Parameters:
o1- First object.o2- Second object.- Returns:
- Result.
-
-