T
- the type, must extend Comparable
public class ComparableComparator<T> extends LdapComparator<Comparable<T>>
description, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification
Constructor and Description |
---|
ComparableComparator(String oid)
The ComparableComparator constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Comparable<T> o1,
Comparable<T> o2)
Compares two objects taking into account that one may be a Comparable.
|
equals, setSchemaManager, toString
copy, getBytecode, getFqcn, isValid, setBytecode, setFqcn
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
public ComparableComparator(String oid)
oid
- the comparator OIDpublic int compare(Comparable<T> o1, Comparable<T> o2)
o1
- the first comparableo2
- the second comparableCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.