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 -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
ComparingByteArrays
public ComparingByteArrays()
-
-
Method Details
-
compare
public int compare(byte[] o1, byte[] o2)- Specified by:
comparein interfaceComparator<byte[]>
-