public class ByteArrayLexOrder
extends java.lang.Object
implements java.util.Comparator<byte[]>
Constructor and Description |
---|
ByteArrayLexOrder() |
Modifier and Type | Method and Description |
---|---|
int |
compare(byte[] bytes1,
byte[] bytes2)
Perform lexicographical comparison of two byte arrays,
regarding each byte as unsigned.
|
public final int compare(byte[] bytes1, byte[] bytes2)
compare
in interface java.util.Comparator<byte[]>
bytes1
- first byte array to compare.bytes2
- second byte array to compare.Copyright © 2025. All rights reserved.