org.apache.directory.server.schema.bootstrap
Class NameOrNumericIdComparator

java.lang.Object
  extended by org.apache.directory.server.schema.bootstrap.NameOrNumericIdComparator
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator

public class NameOrNumericIdComparator
extends java.lang.Object
implements java.util.Comparator, java.io.Serializable

A comparator that sorts OIDs based on their numeric id value. Needs a OidRegistry to properly do it's job. Public method to set the oid registry will be used by the server after instantiation in deserialization.

Version:
$Rev$
Author:
Apache Directory Project
See Also:
Serialized Form

Constructor Summary
NameOrNumericIdComparator()
           
NameOrNumericIdComparator(org.apache.directory.server.schema.registries.OidRegistry registry)
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 void setRegistries(org.apache.directory.server.schema.registries.Registries registries)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

NameOrNumericIdComparator

public NameOrNumericIdComparator(org.apache.directory.server.schema.registries.OidRegistry registry)

NameOrNumericIdComparator

public NameOrNumericIdComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator

setRegistries

public void setRegistries(org.apache.directory.server.schema.registries.Registries registries)


Copyright © 2003-2007 The Apache Software Foundation. All Rights Reserved.