T - the type, must extend Comparablepublic class ComparableComparator<T> extends LdapComparator<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
|
normalizerdescription, extensions, h, isEnabled, isObsolete, 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, getNormalizer, hashCode, setSchemaManager, toStringcopy, getBytecode, getFqcn, isValid, setBytecode, setFqcnaddExtension, addExtension, addName, clear, compareOid, computeHashCode, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, isDisabled, isEnabled, isObsolete, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setSchemaName, setSpecification, unlockclone, finalize, getClass, notify, notifyAll, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongprivate static final long serialVersionUID
private static final org.slf4j.Logger LOG
public ComparableComparator(String oid)
oid - the comparator OIDpublic int compare(Comparable<T> o1, Comparable<T> o2)
o1 - the first comparableo2 - the second comparableCopyright © 2003–2022 The Apache Software Foundation. All rights reserved.