|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opends.server.backends.jeb.OctetStringKeyComparator
public class OctetStringKeyComparator
This class implements a comparator for ASN1OctetString using a byte array comparator supplied in its constructor.
| Constructor Summary | |
|---|---|
OctetStringKeyComparator(java.util.Comparator<byte[]> comparator)
Create a new ASN1 octet string comparator. |
|
| Method Summary | |
|---|---|
int |
compare(ASN1OctetString a,
ASN1OctetString 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 |
|---|
public OctetStringKeyComparator(java.util.Comparator<byte[]> comparator)
comparator - The byte array comparator to be used to compare the
octet string values.| Method Detail |
|---|
public int compare(ASN1OctetString a,
ASN1OctetString b)
throws java.lang.ClassCastException
compare in interface java.util.Comparator<ASN1OctetString>a - the first object to be compared.b - the second object to be compared.
java.lang.ClassCastException - if the arguments' types prevent them from
being compared by this Comparator.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||