com.fasterxml.sort.std
Class ByteArrayComparator

java.lang.Object
  extended by 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).


Constructor Summary
ByteArrayComparator()
           
 
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
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ByteArrayComparator

public ByteArrayComparator()
Method Detail

compare

public int compare(byte[] o1,
                   byte[] o2)
Specified by:
compare in interface Comparator<byte[]>


Copyright © 2011. All Rights Reserved.