Class Filter.AndFilter<T>

java.lang.Object
de.espirit.common.util.Filter.CombinedFilter<T>
de.espirit.common.util.Filter.AndFilter<T>
All Implemented Interfaces:
Filter<T>, Serializable
Enclosing interface:
Filter<T>

public static final class Filter.AndFilter<T> extends Filter.CombinedFilter<T>
A simple combinatorial filter that requires all inner filters to accept an element to be fulfilled.
Since:
4.1.9
See Also:
  • Method Details

    • accept

      public boolean accept(T element)
      Accepts the questioned element, if all inner filters accept the element.
      Parameters:
      element - The element in question.
      Returns:
      true, if the element is accepted.
      Since:
      4.1.9
    • toString

      public String toString()
      Provides a textual representation of this filters.
      Overrides:
      toString in class Object
      Returns:
      The textual representation of this filter.
      Since:
      4.1.9