Class LdapComparator<T>
- 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<T>
-
- Type Parameters:
T- The comparator type
- All Implemented Interfaces:
Serializable,Comparator<T>,SchemaObject
- Direct Known Subclasses:
BitStringComparator,BooleanComparator,ByteArrayComparator,ComparableComparator,CsnComparator,CsnSidComparator,DeepTrimComparator,DeepTrimToLowerComparator,DnComparator,GeneralizedTimeComparator,IntegerComparator,LongComparator,NormalizingComparator,NumericStringComparator,ObjectClassTypeComparator,ObjectIdentifierComparator,ObjectIdentifierFirstComponentComparator,ParsedDnComparator,SerializableComparator,StringComparator,TelephoneNumberComparator,UniqueMemberComparator,WordComparator
public abstract class LdapComparator<T> extends LoadableSchemaObject implements Comparator<T>, Serializable
An class used for Comparator. It inherits from the general AbstractAdsSchemaObject class. It also implements the Comparator interface- Author:
- Apache Directory Project
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected NormalizernormalizerA default 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 Modifier Constructor Description protectedLdapComparator(String oid)Create a new instance of a Comparator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)NormalizergetNormalizer()inthashCode()voidsetSchemaManager(SchemaManager schemaManager)Store the SchemaManager in this instance.StringtoString()-
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
compare, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Field Detail
-
normalizer
protected Normalizer normalizer
A default normalizer
-
-
Constructor Detail
-
LdapComparator
protected LdapComparator(String oid)
Create a new instance of a Comparator- Parameters:
oid- The associated OID
-
-
Method Detail
-
setSchemaManager
public void setSchemaManager(SchemaManager schemaManager)
Store the SchemaManager in this instance. It may be necessary for some comparator which needs to have access to the oidNormalizer Map.- Parameters:
schemaManager- the schemaManager to store
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceSchemaObject- Overrides:
hashCodein classLoadableSchemaObject
-
equals
public boolean equals(Object o)
- Specified by:
equalsin interfaceComparator<T>- Specified by:
equalsin interfaceSchemaObject- Overrides:
equalsin classLoadableSchemaObject
-
getNormalizer
public Normalizer getNormalizer()
- Returns:
- The associated normalizer
-
-