Class UuidComparator
- 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<E>
-
- org.apache.directory.api.ldap.model.schema.comparators.SerializableComparator<String>
-
- org.apache.directory.api.ldap.model.schema.comparators.UuidComparator
-
- All Implemented Interfaces:
Serializable,Comparator<String>,SchemaObject
public class UuidComparator extends SerializableComparator<String>
A comparator for UUID. We simply use the UUID compareTo method.- Author:
- Apache Directory Project
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static UuidComparatorINSTANCEA static instance of the UuidComparatorprivate static org.slf4j.LoggerLOGA logger for this classprivate static longserialVersionUIDThe serial version UID-
Fields inherited from class org.apache.directory.api.ldap.model.schema.LdapComparator
normalizer
-
Fields inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject
description, extensions, h, isEnabled, isObsolete, locked, names, objectType, oid, schemaName, specification
-
-
Constructor Summary
Constructors Constructor Description UuidComparator(String oid)The UUIDComparator constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(String uuid1, String uuid2)intcompare(UUID uuid1, UUID uuid2)Compare two UUID.-
Methods inherited from class org.apache.directory.api.ldap.model.schema.comparators.SerializableComparator
setSchemaManager
-
Methods inherited from class org.apache.directory.api.ldap.model.schema.LdapComparator
equals, getNormalizer, hashCode, 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, compareOid, computeHashCode, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, isDisabled, isEnabled, isObsolete, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setSchemaName, setSpecification, unlock
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
The serial version UID- See Also:
- Constant Field Values
-
LOG
private static final org.slf4j.Logger LOG
A logger for this class
-
INSTANCE
public static final UuidComparator INSTANCE
A static instance of the UuidComparator
-
-
Constructor Detail
-
UuidComparator
public UuidComparator(String oid)
The UUIDComparator constructor. Its OID is the UUIDMatch matching rule OID.- Parameters:
oid- The Comparator's OID
-
-
Method Detail
-
compare
public int compare(String uuid1, String uuid2)
- Specified by:
comparein interfaceComparator<String>- Overrides:
comparein classSerializableComparator<String>
-
-