org.apache.nutch.util
Class Bytes.ByteArrayComparator
java.lang.Object
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.
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 |
Bytes.ByteArrayComparator
public Bytes.ByteArrayComparator()
- Constructor
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