Class Filter.ImpliesFilter<T>

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

public static final class Filter.ImpliesFilter<T> extends Object implements Filter<T>
A filter implementation accepting elements based on a logical consequence concept, i.e., it accepts an element, if the implication accepting the element is a consequence of the condition accepting it.
Since:
4.1.9
See Also:
  • Method Details

    • accept

      public boolean accept(T element)
      Accepts an element, if either the condition does not accept it or, if it does, the implication also accepts it.
      Specified by:
      accept in interface Filter<T>
      Parameters:
      element - The element in question.
      Returns:
      true, if the logical consequence is fulfilled.
      Since:
      4.1.9