Class SerializableComparator<E>

Type Parameters:
E - The type of object to compare
All Implemented Interfaces:
Serializable, Comparator<E>, SchemaObject
Direct Known Subclasses:
UuidComparator

public class SerializableComparator<E> extends LdapComparator<E> implements Serializable
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:
  • Constructor Details

    • SerializableComparator

      public SerializableComparator(String matchingRuleOid)
      Creates a new instance of SerializableComparator.
      Parameters:
      matchingRuleOid - The MatchingRule OID
  • Method Details

    • compare

      public int compare(E o1, E o2)
      Specified by:
      compare in interface Comparator<E>
    • 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