Package netscape.ldap
Interface LDAPEntryComparator
-
- All Known Implementing Classes:
LDAPCompareAttrNames
public interface LDAPEntryComparatorTheLDAPEntryComparatorinterface represents the algorithm used to sort the search results. This interface specifies one method,isGreater, which compares two entries and determines the order in which the two entries should be sorted.The
netscape.ldappackage includes a class that implements this interface. TheLDAPCompareAttrNamesclass represents a comparator that sorts the two entries alphabetically, based on the value of one or more attributes.When calling the
sortmethod of theLDAPSearchResultsclass, you need to specify a class that implements theLDAPEntryComparatorinterface.- Version:
- 1.0
- See Also:
LDAPCompareAttrNames,LDAPSearchResults.sort(netscape.ldap.LDAPEntryComparator)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisGreater(LDAPEntry greater, LDAPEntry less)Specifies the algorithm used to compare entries when sorting search results.
-