|
LDAPJDK 4.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The LDAPEntryComparator interface 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.ldap package includes a class that
implements this interface. The LDAPCompareAttrNames
class represents a comparator that sorts the two entries alphabetically,
based on the value of one or more attributes.
When calling the sort method of the
LDAPSearchResults class, you need to specify
a class that implements the LDAPEntryComparator
interface.
LDAPCompareAttrNames,
LDAPSearchResults.sort(netscape.ldap.LDAPEntryComparator)| Method Summary | |
boolean |
isGreater(LDAPEntry greater,
LDAPEntry less)
Specifies the algorithm used to compare entries when sorting search results. |
| Method Detail |
public boolean isGreater(LDAPEntry greater,
LDAPEntry less)
isGreater returns true
if the entry specified in the first argument should
be sorted before the entry specified in the second
argument.
LDAPCompareAttrNames,
LDAPSearchResults.sort(netscape.ldap.LDAPEntryComparator)
|
LDAPJDK 4.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||