org.apache.directory.server.core.partition.impl.btree
Class LongComparator

java.lang.Object
  extended by org.apache.directory.shared.ldap.schema.AbstractSchemaObject
      extended by org.apache.directory.shared.ldap.schema.LoadableSchemaObject
          extended by org.apache.directory.shared.ldap.schema.LdapComparator<E>
              extended by org.apache.directory.shared.ldap.schema.comparators.SerializableComparator<java.lang.Long>
                  extended by org.apache.directory.server.core.partition.impl.btree.LongComparator
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator<java.lang.Long>, org.apache.directory.shared.ldap.schema.SchemaObject

public class LongComparator
extends org.apache.directory.shared.ldap.schema.comparators.SerializableComparator<java.lang.Long>

A serializable comparator for long values.

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

Field Summary
static LongComparator INSTANCE
           
 
Fields inherited from class org.apache.directory.shared.ldap.schema.AbstractSchemaObject
description, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification
 
Constructor Summary
LongComparator()
           
 
Method Summary
 int compare(java.lang.Long l1, java.lang.Long l2)
           
 
Methods inherited from class org.apache.directory.shared.ldap.schema.comparators.SerializableComparator
setSchemaManager
 
Methods inherited from class org.apache.directory.shared.ldap.schema.LdapComparator
equals, toString
 
Methods inherited from class org.apache.directory.shared.ldap.schema.LoadableSchemaObject
copy, getBytecode, getFqcn, isValid, registerOid, setBytecode, setFqcn
 
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
 

Field Detail

INSTANCE

public static final LongComparator INSTANCE
Constructor Detail

LongComparator

public LongComparator()
Method Detail

compare

public int compare(java.lang.Long l1,
                   java.lang.Long l2)
Specified by:
compare in interface java.util.Comparator<java.lang.Long>
Overrides:
compare in class org.apache.directory.shared.ldap.schema.comparators.SerializableComparator<java.lang.Long>


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.