Class GenericFilter

java.lang.Object
com.unboundid.ldap.sdk.unboundidds.examples.GenericFilter
All Implemented Interfaces:
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:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new generic filter from the provided search filter.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether the provided object is equal to this generic filter.
    int
    Retrieves a hash code for this generic filter.
    Retrieves a string representation of this generic filter.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GenericFilter

      Creates a new generic filter from the provided search filter.
      Parameters:
      f - The filter to use to create a generic filter.
  • Method Details

    • hashCode

      public int hashCode()
      Retrieves a hash code for this generic filter.
      Overrides:
      hashCode in class Object
      Returns:
      A hash code for this generic filter.
    • equals

      public boolean equals(@Nullable Object o)
      Indicates whether the provided object is equal to this generic filter.
      Overrides:
      equals in class Object
      Parameters:
      o - The object for which to make the determination.
      Returns:
      true the provided object is equal to this generic filter, or false if not.
    • toString

      Retrieves a string representation of this generic filter.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this generic filter.