Class Utils.ComparingByteArrays
- java.lang.Object
-
- com.amazonaws.encryptionsdk.internal.Utils.ComparingByteArrays
-
- All Implemented Interfaces:
Serializable
,Comparator<byte[]>
- Enclosing class:
- Utils
public static class Utils.ComparingByteArrays extends Object implements Comparator<byte[]>, Serializable
Comparator that performs a lexicographical comparison of byte arrays, treating them as unsigned.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ComparingByteArrays()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(byte[] o1, byte[] o2)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(byte[] o1, byte[] o2)
- Specified by:
compare
in interfaceComparator<byte[]>
-
-