com.fasterxml.sort.std
Class ByteArrayComparator
java.lang.Object
com.fasterxml.sort.std.ByteArrayComparator
- All Implemented Interfaces:
- Comparator<byte[]>
public class ByteArrayComparator
- extends Object
- implements Comparator<byte[]>
Simple implementation of comparator for byte arrays which
will compare using unsigned byte values (meaning
that 0xFF is creator than 0x00, for example).
|
Method Summary |
int |
compare(byte[] o1,
byte[] o2)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteArrayComparator
public ByteArrayComparator()
compare
public int compare(byte[] o1,
byte[] o2)
- Specified by:
compare in interface Comparator<byte[]>
Copyright © 2011. All Rights Reserved.