org.opends.server.backends.jeb
Class AttributeIndex.KeyComparator

java.lang.Object
  extended by org.opends.server.backends.jeb.AttributeIndex.KeyComparator
All Implemented Interfaces:
java.util.Comparator<byte[]>
Enclosing class:
AttributeIndex

public static class AttributeIndex.KeyComparator
extends java.lang.Object
implements java.util.Comparator<byte[]>

The default lexicographic byte array comparator. Is there one available in the Java platform?


Constructor Summary
AttributeIndex.KeyComparator()
           
 
Method Summary
 int compare(byte[] a, byte[] b)
          Compares its two arguments for order.
 
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

AttributeIndex.KeyComparator

public AttributeIndex.KeyComparator()
Method Detail

compare

public int compare(byte[] a,
                   byte[] b)
Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

Specified by:
compare in interface java.util.Comparator<byte[]>
Parameters:
a - the first object to be compared.
b - the second object to be compared.
Returns:
a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.