org.apache.nutch.util
Class Bytes.ByteArrayComparator

java.lang.Object
  extended by org.apache.nutch.util.Bytes.ByteArrayComparator
All Implemented Interfaces:
Comparator<byte[]>, RawComparator<byte[]>
Enclosing class:
Bytes

public static class Bytes.ByteArrayComparator
extends Object
implements RawComparator<byte[]>

Byte array comparator class.


Constructor Summary
Bytes.ByteArrayComparator()
          Constructor
 
Method Summary
 int compare(byte[] left, byte[] right)
           
 int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)
           
 
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

Bytes.ByteArrayComparator

public Bytes.ByteArrayComparator()
Constructor

Method Detail

compare

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

compare

public int compare(byte[] b1,
                   int s1,
                   int l1,
                   byte[] b2,
                   int s2,
                   int l2)
Specified by:
compare in interface RawComparator<byte[]>


Copyright © 2012 The Apache Software Foundation