@API(value=Experimental) public interface DiscoveryFilter<T> extends Filter<T>
These filters need to be applied by the TestEngine during test
discovery.
EngineDiscoveryRequest,
TestEngine| Modifier and Type | Method and Description |
|---|---|
static <T> DiscoveryFilter<T> |
combine(java.util.Collection<? extends DiscoveryFilter<T>> filters)
Combines a collection of
DiscoveryFilters into a new filter that
will include elements if and only if all of the filters in the specified
collection include it. |
static <T> DiscoveryFilter<T> |
combine(DiscoveryFilter<T>... filters)
Combines an array of
DiscoveryFilters into a new filter that will
include elements if and only if all of the filters in the specified array
include it. |
filter, toPredicate@SafeVarargs static <T> DiscoveryFilter<T> combine(DiscoveryFilter<T>... filters)
DiscoveryFilters into a new filter that will
include elements if and only if all of the filters in the specified array
include it.
If the array is null or empty, the returned filter will
include all elements it is asked to filter.
If the length of the array is 1, this method will return the filter contained in the array.
static <T> DiscoveryFilter<T> combine(java.util.Collection<? extends DiscoveryFilter<T>> filters)
DiscoveryFilters into a new filter that
will include elements if and only if all of the filters in the specified
collection include it.
If the collection is null or empty, the returned filter will
include all elements it is asked to filter.
If the size of the collection is 1, this method will return the filter contained in the collection.