Class SerializableComparator<E>
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<E>
- Type Parameters:
E- The type of object to compare
- All Implemented Interfaces:
Serializable, Comparator<E>, SchemaObject
- Direct Known Subclasses:
UuidComparator
A serializable wrapper around a Comparator which uses delayed initialization
of the underlying wrapped comparator which is JIT resolved from a static
global registry.
- Author:
- Apache Directory Project
- See Also:
-
Field Summary
Fields inherited from class LdapComparator
normalizerFields inherited from class AbstractSchemaObject
description, extensions, h, isEnabled, isObsolete, locked, names, objectType, oid, schemaName, specification -
Constructor Summary
ConstructorsConstructorDescriptionSerializableComparator(String matchingRuleOid) Creates a new instance of SerializableComparator. -
Method Summary
Modifier and TypeMethodDescriptionintvoidsetSchemaManager(SchemaManager schemaManager) Store the SchemaManager in this instance.Methods inherited from class LdapComparator
equals, getNormalizer, hashCode, toStringMethods inherited from class LoadableSchemaObject
copy, getBytecode, getFqcn, isValid, setBytecode, setFqcnMethods inherited from class AbstractSchemaObject
addExtension, addExtension, addName, clear, compareOid, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, isDisabled, isEnabled, isObsolete, lock, rehash, rehashBase, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setSchemaName, setSpecification, unlockMethods inherited from interface Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
SerializableComparator
Creates a new instance of SerializableComparator.- Parameters:
matchingRuleOid- The MatchingRule OID
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<E>
-
setSchemaManager
Description copied from class:LdapComparatorStore the SchemaManager in this instance. It may be necessary for some comparator which needs to have access to the oidNormalizer Map.- Overrides:
setSchemaManagerin classLdapComparator<E>- Parameters:
schemaManager- the schemaManager to set
-