com.unboundid.ldap.sdk.unboundidds.examples
Class GenericFilter

java.lang.Object
  extended by 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

NOTE: This class is part of the Commercial Edition of the UnboundID LDAP SDK for Java. It is not available for use in applications that include only the Standard Edition of the LDAP SDK, and is not supported for use in conjunction with non-UnboundID products.
This class provides a data structure for representing search filters in a generic way. This includes:

See Also:
Serialized Form

Constructor Summary
GenericFilter(Filter f)
          Creates a new generic filter from the provided search filter.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericFilter

public GenericFilter(Filter f)
Creates a new generic filter from the provided search filter.

Parameters:
f - The filter to use to create a generic filte.r
Method Detail

hashCode

public int hashCode()
Retrieves a hash code for this generic filter.

Overrides:
hashCode in class java.lang.Object
Returns:
A hash code for this generic filter.

equals

public boolean equals(java.lang.Object o)
Indicates whether the provided object is equal to this generic filter.

Overrides:
equals in class java.lang.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

public java.lang.String toString()
Retrieves a string representation of this generic filter.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this generic filter.