| java.lang.Object sun.security.util.ByteArrayLexOrder
ByteArrayLexOrder | public class ByteArrayLexOrder implements Comparator(Code) | | Compare two byte arrays in lexicographical order.
version: 1.9 02/02/00 author: D. N. Hoover |
Method Summary | |
final public int | compare(Object obj1, Object obj2) Perform lexicographical comparison of two byte arrays,
regarding each byte as unsigned. |
compare | final public int compare(Object obj1, Object obj2)(Code) | | 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".
Parameters: obj1 - first byte array to compare. Parameters: obj2 - second byte array to compare. negative number if obj1 < obj2, 0 if obj1 == obj2, positive number if obj1 > obj2. ClassCastException if either argument is not a byte array. |
|
|