| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final int | Returns: negative number ifbytes1 < bytes2,
0 if bytes1 == bytes2,
positive number if bytes1 > bytes2.first byte array to compare. bytes1, byte[] second byte array to compare. bytes2)Implements java. Perform lexicographical comparison of two byte arrays, regarding each byte as unsigned. |
| ByteArrayLexOrder | back to summary |
|---|---|
| public ByteArrayLexOrder() | |
| compare | back to summary |
|---|---|
| public final int compare(byte[] bytes1, byte[] bytes2) Implements java. Perform lexicographical comparison of two byte arrays, regarding each byte as unsigned. That is, compare array entries in order until they differ--the array with the smaller entry is "smaller". If array entries are equal till one array ends, then the longer array is "bigger".
| |