Package com.arcadedb.serializer
Class BinaryComparator
- java.lang.Object
-
- com.arcadedb.serializer.BinaryComparator
-
public class BinaryComparator extends Object
-
-
Constructor Summary
Constructors Constructor Description BinaryComparator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Object value1, byte type1, Object value2, byte type2)
static int
compareBytes(byte[] buffer1, byte[] buffer2)
int
compareBytes(byte[] buffer1, Binary buffer2)
static int
compareTo(Object a, Object b)
Compare 2 values.static boolean
equals(Object a, Object b)
static boolean
equalsBinary(Binary buffer1, Binary buffer2)
static boolean
equalsBytes(byte[] buffer1, byte[] buffer2)
static boolean
equalsBytes(byte[] buffer1, byte[] buffer2, int length)
static boolean
equalsString(String buffer1, String buffer2)
-
-
-
Method Detail
-
compareBytes
public int compareBytes(byte[] buffer1, Binary buffer2)
-
equalsBytes
public static boolean equalsBytes(byte[] buffer1, byte[] buffer2)
-
equalsBytes
public static boolean equalsBytes(byte[] buffer1, byte[] buffer2, int length)
-
compareTo
public static int compareTo(Object a, Object b)
Compare 2 values. If strings or byte[] the unsafe native comparator will be used.
-
compareBytes
public static int compareBytes(byte[] buffer1, byte[] buffer2)
-
-