Class ByteArrayComparator
- java.lang.Object
-
- org.apache.directory.api.ldap.model.schema.AbstractSchemaObject
-
- org.apache.directory.api.ldap.model.schema.LoadableSchemaObject
-
- org.apache.directory.api.ldap.model.schema.LdapComparator<byte[]>
-
- org.apache.directory.api.ldap.model.schema.comparators.ByteArrayComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<byte[]>
,SchemaObject
- Direct Known Subclasses:
CertificateComparator
public class ByteArrayComparator extends LdapComparator<byte[]>
A comparator for byte[]s.- Author:
- Apache Directory Project
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ByteArrayComparator(String oid)
The ByteArrayComparator constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(byte[] b1, byte[] b2)
-
Methods inherited from class org.apache.directory.api.ldap.model.schema.LdapComparator
equals, getNormalizer, setSchemaManager, toString
-
Methods inherited from class org.apache.directory.api.ldap.model.schema.LoadableSchemaObject
copy, getBytecode, getFqcn, isValid, setBytecode, setFqcn
-
Methods inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject
addExtension, addExtension, addName, clear, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, hashCode, isDisabled, isEnabled, isObsolete, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setSchemaName, setSpecification, unlock
-
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
ByteArrayComparator
public ByteArrayComparator(String oid)
The ByteArrayComparator constructor. Its OID is the OctetStringMatch matching rule OID.- Parameters:
oid
- The Comparator's OID
-
-
Method Detail
-
compare
public int compare(byte[] b1, byte[] b2)
-
-