org.apache.directory.api.ldap.model.schema.comparators
Class IntegerComparator

java.lang.Object
  extended by org.apache.directory.api.ldap.model.schema.AbstractSchemaObject
      extended by org.apache.directory.api.ldap.model.schema.LoadableSchemaObject
          extended by org.apache.directory.api.ldap.model.schema.LdapComparator<Object>
              extended by org.apache.directory.api.ldap.model.schema.comparators.IntegerComparator
All Implemented Interfaces:
Serializable, Comparator<Object>, SchemaObject

public class IntegerComparator
extends LdapComparator<Object>
implements Serializable

A class for the integerOrderingMatch matchingRule (RFC 4517, par. 4.2.20)

Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject
description, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification
 
Constructor Summary
IntegerComparator(String oid)
          The IntegerComparator constructor.
 
Method Summary
 int compare(Object v1, Object v2)
          Implementation of the Compare method
 
Methods inherited from class org.apache.directory.api.ldap.model.schema.LdapComparator
equals, setSchemaManager, toString
 
Methods inherited from class org.apache.directory.api.ldap.model.schema.LoadableSchemaObject
copy, getBytecode, getFqcn, isValid, setBytecode, setFqcn
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntegerComparator

public IntegerComparator(String oid)
The IntegerComparator constructor. Its OID is the IntegerOrderingMatch matching rule OID.

Method Detail

compare

public int compare(Object v1,
                   Object v2)
Implementation of the Compare method

Specified by:
compare in interface Comparator<Object>


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