- java.lang.Object
-
- org.junit.platform.engine.CompositeFilter<T>
-
-
Field Summary
Fields Modifier and Type Field Description private static Filter
ALWAYS_INCLUDED_FILTER
private static FilterResult
ALWAYS_INCLUDED_RESULT
private java.util.Collection<Filter<T>>
filters
private static FilterResult
INCLUDED_BY_ALL_FILTERS
-
Constructor Summary
Constructors Constructor Description CompositeFilter(java.util.Collection<? extends Filter<T>> filters)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static <T> Filter<T>
alwaysIncluded()
FilterResult
apply(T element)
Apply this filter to the supplied object.java.util.function.Predicate<T>
toPredicate()
Return aPredicate
that returnstrue
if this filter includes the object supplied to the predicate'stest
method.java.lang.String
toString()
-
-
-
Field Detail
-
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
-
-
Method Detail
-
alwaysIncluded
static <T> Filter<T> alwaysIncluded()
-
apply
public FilterResult apply(T element)
Description copied from interface:Filter
Apply this filter to the supplied object.
-
toPredicate
public java.util.function.Predicate<T> toPredicate()
Description copied from interface:Filter
Return aPredicate
that returnstrue
if this filter includes the object supplied to the predicate'stest
method.- Specified by:
toPredicate
in interfaceFilter<T>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-