Class Filter.OrFilter<T>

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

public static final class Filter.OrFilter<T> extends Filter.CombinedFilter<T>
A simple combinatorial filter that requires one of the 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 any one of the inner filters accepts it.
      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