T - the type, must extend Comparablepublic class ComparableComparator<T> extends LdapComparator<java.lang.Comparable<T>>
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG
A logger for this class
|
private static long |
serialVersionUID
The serial version UID
|
description, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification| Constructor and Description |
|---|
ComparableComparator(java.lang.String oid)
The ComparableComparator constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.lang.Comparable<T> o1,
java.lang.Comparable<T> o2)
Compares two objects taking into account that one may be a Comparable.
|
equals, setSchemaManager, toStringcopy, getBytecode, getFqcn, isValid, setBytecode, setFqcnaddExtension, addExtension, addName, clear, compareOid, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setReadOnly, setSchemaName, setSpecification, unlockprivate static final long serialVersionUID
private static final org.slf4j.Logger LOG
public ComparableComparator(java.lang.String oid)
oid - the comparator OIDpublic int compare(java.lang.Comparable<T> o1, java.lang.Comparable<T> o2)
o1 - the first comparableo2 - the second comparable