@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class FilterComparator extends java.lang.Object implements java.util.Comparator<Filter>, java.io.Serializable
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds package structure, are only
supported for use against Ping Identity, UnboundID, and
Nokia/Alcatel-Lucent 8661 server products. These classes provide support
for proprietary functionality or for external specifications that are not
considered stable or mature enough to be guaranteed to work in an
interoperable way with other types of LDAP servers.
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Filter f1,
Filter f2)
Determines a relative order for the provided filter objects.
|
boolean |
equals(java.lang.Object o)
Indicates whether the provided object is equal to this filter comparator.
|
static FilterComparator |
getInstance()
Retrieves the singleton instance of this filter comparator.
|
int |
hashCode()
Retrieves a hash code for this filter comparator.
|
@NotNull public static FilterComparator getInstance()
public int compare(@NotNull Filter f1, @NotNull Filter f2)
compare in interface java.util.Comparator<Filter>f1 - The first filter for which to make the determination.
It must not be nullf2 - The second filter for which to make the determination.
It must not be nullpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(@Nullable java.lang.Object o)
equals in interface java.util.Comparator<Filter>equals in class java.lang.Objecto - The object for which to make the determination.true if the provided object is equal to this filter
comparator, or false if not.