Class Filter.NotFilter<T>

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

public static final class Filter.NotFilter<T> extends Object implements Filter<T>
A simple filter negating the single inner one.
Since:
4.1.9
See Also:
  • Method Details

    • accept

      public boolean accept(T element)
      Accepts the questioned element if the inner filter does not accept it.
      Specified by:
      accept in interface Filter<T>
      Parameters:
      element - The element in question.
      Returns:
      true, if the inner filter does not accept the element.
      Since:
      4.1.9
    • toString

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