org.apache.directory.api.ldap.model.schema.comparators
Class LongComparator
java.lang.Object
org.apache.directory.api.ldap.model.schema.AbstractSchemaObject
org.apache.directory.api.ldap.model.schema.LoadableSchemaObject
org.apache.directory.api.ldap.model.schema.LdapComparator<Long>
org.apache.directory.api.ldap.model.schema.comparators.LongComparator
- All Implemented Interfaces:
- Serializable, Comparator<Long>, SchemaObject
public class LongComparator
- extends LdapComparator<Long>
- implements Serializable
Compares Long keys and values within a table.
- Author:
- Apache Directory Project
- See Also:
- Serialized Form
| Fields inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject |
description, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification |
| Methods inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject |
addExtension, addExtension, addName, clear, compareOid, copy, getDescription, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setReadOnly, setSchemaName, setSpecification, unlock |
LongComparator
public LongComparator(String oid)
- The LongComparator constructor. Its OID is the IntegerOrderingMatch matching
rule OID.
compare
public int compare(Long obj1,
Long obj2)
- Compare two objects.
- Specified by:
compare in interface Comparator<Long>
- Parameters:
obj1 - First objectobj2 - Second object
- Returns:
- 1 if obj1 > obj2, 0 if obj1 == obj2, -1 if obj1 < obj2
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.