org.apache.directory.shared.ldap.schema.comparators
Class SerializableComparator<E>
java.lang.Object
org.apache.directory.shared.ldap.schema.AbstractSchemaObject
org.apache.directory.shared.ldap.schema.LoadableSchemaObject
org.apache.directory.shared.ldap.schema.LdapComparator<E>
org.apache.directory.shared.ldap.schema.comparators.SerializableComparator<E>
- All Implemented Interfaces:
- java.io.Serializable, java.util.Comparator<E>, SchemaObject
public class SerializableComparator<E>
- extends LdapComparator<E>
A serializable wrapper around a Comparator which uses delayed initialization
of the underlying wrapped comparator which is JIT resolved from a static
global registry.
- Version:
- $Rev: 923524 $
- Author:
- Apache Directory Project
- See Also:
- Serialized Form
Fields inherited from class org.apache.directory.shared.ldap.schema.AbstractSchemaObject |
description, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification |
Methods inherited from class org.apache.directory.shared.ldap.schema.AbstractSchemaObject |
addExtension, addName, addToRegistries, clear, compareOid, copy, getDescription, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, removeFromRegistries, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setReadOnly, setRegistries, setSchemaName, setSpecification |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SerializableComparator
public SerializableComparator(java.lang.String matchingRuleOid)
compare
public int compare(E o1,
E o2)
- See Also:
Comparator.compare(java.lang.Object, java.lang.Object)
setSchemaManager
public void setSchemaManager(SchemaManager schemaManager)
- Description copied from class:
LdapComparator
- Store the SchemaManager in this instance. It may be necessary for some
comparator which needs to have access to the oidNormalizer Map.
- Overrides:
setSchemaManager
in class LdapComparator<E>
- Parameters:
schemaManager
- the schemaManager to set
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.