public class ByteArrayLexOrder extends Object implements Comparator
Constructor and Description |
---|
ByteArrayLexOrder() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Object obj1,
Object obj2)
Perform lexicographical comparison of two byte arrays, regarding each
byte as unsigned.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public final int compare(Object obj1, Object obj2)
compare
in interface Comparator
obj1
- first byte array to compare.obj2
- second byte array to compare.ClassCastException
- if either argument is not a
byte array.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.