net.obsearch.index.utils
Class ByteArrayComparator

java.lang.Object
  extended by net.obsearch.index.utils.ByteArrayComparator
All Implemented Interfaces:
Comparator<byte[]>

public final class ByteArrayComparator
extends Object
implements Comparator<byte[]>

ByteArrayComparison compares byte arrays.

Author:
Arnoldo Jose Muller Molina

Constructor Summary
ByteArrayComparator()
           
 
Method Summary
 int compare(byte[] o1, byte[] o2)
           
 boolean equals(Object obj)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArrayComparator

public ByteArrayComparator()
Method Detail

compare

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

equals

public boolean equals(Object obj)
Specified by:
equals in interface Comparator<byte[]>
Overrides:
equals in class Object


Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.