Class GenericFilter
- java.lang.Object
-
- com.unboundid.ldap.sdk.unboundidds.examples.GenericFilter
-
- All Implemented Interfaces:
java.io.Serializable
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class GenericFilter extends java.lang.Object implements java.io.Serializable
This class provides a data structure for representing search filters in a generic way.
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.
This includes:- Using a consistent order for AND and OR components.
- Converting all attribute names to lowercase.
- Replacing the assertion value with a "?" character for equality, greater-or-equal, less-or-equal, approximate match, and extensible match filters.
- Replacing all subInitial, subAny, and subFinal elements with "?" characters in substring filters.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GenericFilter(Filter f)
Creates a new generic filter from the provided search filter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Indicates whether the provided object is equal to this generic filter.int
hashCode()
Retrieves a hash code for this generic filter.java.lang.String
toString()
Retrieves a string representation of this generic filter.
-
-
-
Constructor Detail
-
GenericFilter
public GenericFilter(@NotNull Filter f)
Creates a new generic filter from the provided search filter.- Parameters:
f
- The filter to use to create a generic filter.
-
-
Method Detail
-
hashCode
public int hashCode()
Retrieves a hash code for this generic filter.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- A hash code for this generic filter.
-
equals
public boolean equals(@Nullable java.lang.Object o)
Indicates whether the provided object is equal to this generic filter.- Overrides:
equals
in classjava.lang.Object
- Parameters:
o
- The object for which to make the determination.- Returns:
true
the provided object is equal to this generic filter, orfalse
if not.
-
-