Package org.junit.platform.engine
Class CompositeFilter<T>
- java.lang.Object
-
- org.junit.platform.engine.CompositeFilter<T>
-
-
Field Summary
Fields Modifier and Type Field Description private static FilterALWAYS_INCLUDED_FILTERprivate static FilterResultALWAYS_INCLUDED_RESULTprivate java.util.Collection<Filter<T>>filtersprivate static FilterResultINCLUDED_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()FilterResultapply(T element)Apply this filter to the supplied object.java.util.function.Predicate<T>toPredicate()Return aPredicatethat returnstrueif this filter includes the object supplied to the predicate'stestmethod.java.lang.StringtoString()
-
-
-
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:FilterApply this filter to the supplied object.
-
toPredicate
public java.util.function.Predicate<T> toPredicate()
Description copied from interface:FilterReturn aPredicatethat returnstrueif this filter includes the object supplied to the predicate'stestmethod.- Specified by:
toPredicatein interfaceFilter<T>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-