Class CompositeFilter<T>

java.lang.Object
org.junit.platform.engine.CompositeFilter<T>
All Implemented Interfaces:
Filter<T>

class CompositeFilter<T> extends Object implements Filter<T>
Combines a collection of Filters into a new filter that will include elements if and only if all of the filters in the specified collection include it.
Since:
1.0
  • Field Details

    • ALWAYS_INCLUDED_FILTER

      private static final Filter ALWAYS_INCLUDED_FILTER
    • ALWAYS_INCLUDED_RESULT

      private static final FilterResult ALWAYS_INCLUDED_RESULT
    • INCLUDED_BY_ALL_FILTERS

      private static final FilterResult INCLUDED_BY_ALL_FILTERS
    • filters

      private final Collection<Filter<T>> filters
  • Constructor Details

  • Method Details

    • alwaysIncluded

      static <T> Filter<T> alwaysIncluded()
    • apply

      public FilterResult apply(T element)
      Description copied from interface: Filter
      Apply this filter to the supplied object.
      Specified by:
      apply in interface Filter<T>
    • toPredicate

      public Predicate<T> toPredicate()
      Description copied from interface: Filter
      Return a Predicate that returns true if this filter includes the object supplied to the predicate's test method.
      Specified by:
      toPredicate in interface Filter<T>
    • toString

      public String toString()
      Overrides:
      toString in class Object