org.apache.directory.server.schema.bootstrap
Class NameOrNumericIdComparator
java.lang.Object
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
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 |
NameOrNumericIdComparator
public NameOrNumericIdComparator(OidRegistry registry)
NameOrNumericIdComparator
public NameOrNumericIdComparator()
compare
public int compare(java.lang.Object o1,
java.lang.Object o2)
- Specified by:
compare
in interface java.util.Comparator
setRegistries
public void setRegistries(Registries registries)
Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.