Interface Filter

All Known Implementing Classes:
AbsoluteFalseFilter, AbsoluteTrueFilter, AbstractFilter, AndFilter, BinaryLogicalFilter, CompareFilter, EqualsFilter, GreaterThanOrEqualsFilter, HardcodedFilter, LessThanOrEqualsFilter, LikeFilter, NotFilter, NotPresentFilter, OrFilter, PresentFilter, WhitespaceWildcardsFilter

public interface Filter
Common interface for LDAP filters.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Encodes the filter to a String.
    Encodes the filter to a StringBuffer.
    boolean
    All filters must implement equals.
    int
    All filters must implement hashCode.
  • Method Details

    • encode

      String encode()
      Encodes the filter to a String.
      Returns:
      The encoded filter in the standard String format
    • encode

      Encodes the filter to a StringBuffer.
      Parameters:
      buf - The StringBuffer to encode the filter to
      Returns:
      The same StringBuffer as was given
    • equals

      boolean equals(Object o)
      All filters must implement equals.
      Overrides:
      equals in class Object
      Parameters:
      o -
      Returns:
      true if the objects are equal.
    • hashCode

      int hashCode()
      All filters must implement hashCode.
      Overrides:
      hashCode in class Object
      Returns:
      the hash code according to the contract in Object.hashCode()