public class ByteArrayComparator
extends java.lang.Object
implements java.util.Comparator<byte[]>
| Modifier and Type | Field and Description |
|---|---|
static ByteArrayComparator |
INSTANCE
A static instance of a ByteArrayComparator
|
| Modifier | Constructor and Description |
|---|---|
private |
ByteArrayComparator()
A private constructor of the ByteArrayComparator class
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(byte[] byteArray1,
byte[] byteArray2)
Compare two byte arrays.
|
public static final ByteArrayComparator INSTANCE
private ByteArrayComparator()
public int compare(byte[] byteArray1,
byte[] byteArray2)
compare in interface java.util.Comparator<byte[]>byteArray1 - First byteArraybyteArray2 - Second byteArray