Package org.forgerock.opendj.ldap
Class SortKey.SortComparator
java.lang.Object
org.forgerock.opendj.ldap.SortKey.SortComparator
- All Implemented Interfaces:
Comparator<Entry>
- Enclosing class:
- SortKey
Comparator derived from a sort key which can be used to compare entries.
Comparators themselves can be tested for equality of the sort key attribute type, sort order and matching rule.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the attribute description derived from theSortKey.getAttributeDescription()string.intWe must use the lowest available value in both entries and missing attributes sort last.booleaninthashCode()sortKey()Returns the sort key that created this sort comparator.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Method Details
-
compare
We must use the lowest available value in both entries and missing attributes sort last.- Specified by:
comparein interfaceComparator<Entry>
-
attributeDescription
Returns the attribute description derived from theSortKey.getAttributeDescription()string.- Returns:
- the attribute description derived from the
SortKey.getAttributeDescription()string
-
sortKey
Returns the sort key that created this sort comparator.- Returns:
- the sort key that created this sort comparator
-
equals
- Specified by:
equalsin interfaceComparator<Entry>- Overrides:
equalsin classObject
-
hashCode
public int hashCode() -
toString
-