org.apache.directory.shared.ldap.schema
Class ByteArrayComparator

java.lang.Object
  extended by org.apache.directory.shared.ldap.schema.ByteArrayComparator
All Implemented Interfaces:
java.util.Comparator<byte[]>

public class ByteArrayComparator
extends java.lang.Object
implements java.util.Comparator<byte[]>

A comparator for byte[]s.

Version:
$Rev$
Author:
Apache Directory Project

Field Summary
static java.util.Comparator<byte[]> INSTANCE
          A static instance of this comparator
 
Constructor Summary
ByteArrayComparator()
           
 
Method Summary
 int compare(byte[] b1, byte[] b2)
           
 
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
 

Field Detail

INSTANCE

public static final java.util.Comparator<byte[]> INSTANCE
A static instance of this comparator

Constructor Detail

ByteArrayComparator

public ByteArrayComparator()
Method Detail

compare

public int compare(byte[] b1,
                   byte[] b2)
Specified by:
compare in interface java.util.Comparator<byte[]>
See Also:
Comparator.compare(java.lang.Object, java.lang.Object)


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.