Top Description Fields Constructors Methods
org.junit.platform.engine

pack-priv Class CompositeFilter<T>

extends Object
implements Filter<T>
Class Inheritance
All Implemented Interfaces
org.junit.platform.engine.Filter
Static Imports
java.util.stream.Collectors.joining, org.junit.platform.engine.FilterResult.included

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 Summary

Modifier and TypeField and Description
private static final Filter<T>
private static final FilterResult
private final Collection<Filter<T>>
private static final FilterResult

Constructor Summary

AccessConstructor and Description
pack-priv
CompositeFilter(Collection<? extends Filter<T>> filters)

Method Summary

Modifier and TypeMethod and Description
pack-priv static <T> Filter<T>
public FilterResult
apply(T element)

Implements org.junit.platform.engine.Filter.apply.

Apply this filter to the supplied object.

public Predicate<T>
toPredicate()

Overrides default org.junit.platform.engine.Filter.toPredicate.

Return a Predicate that returns true if this filter includes the object supplied to the predicate's test method.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

ALWAYS_INCLUDED_FILTERback to summary
private static final Filter<T> ALWAYS_INCLUDED_FILTER
Annotations
@SuppressWarnings:rawtypes
ALWAYS_INCLUDED_RESULTback to summary
private static final FilterResult ALWAYS_INCLUDED_RESULT
filtersback to summary
private final Collection<Filter<T>> filters
INCLUDED_BY_ALL_FILTERSback to summary
private static final FilterResult INCLUDED_BY_ALL_FILTERS

Constructor Detail

CompositeFilterback to summary
pack-priv CompositeFilter(Collection<? extends Filter<T>> filters)

Method Detail

alwaysIncludedback to summary
pack-priv static <T> Filter<T> alwaysIncluded()
Annotations
@SuppressWarnings:unchecked
applyback to summary
public FilterResult apply(T element)

Implements org.junit.platform.engine.Filter.apply.

Doc from org.junit.platform.engine.Filter.apply.

Apply this filter to the supplied object.

Annotations
@Override
toPredicateback to summary
public Predicate<T> toPredicate()

Overrides default org.junit.platform.engine.Filter.toPredicate.

Doc from org.junit.platform.engine.Filter.toPredicate.

Return a Predicate that returns true if this filter includes the object supplied to the predicate's test method.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override