Filter can be applied to determine if an object should be
included or excluded in a result set.
For example, tests may be filtered during or after test discovery based on certain criteria.
Clients should not implement this interface directly but rather one of its subinterfaces.
DiscoveryFilter
| Modifier and Type | Method and Description |
|---|---|
| public static <T, V> Filter | adaptFilter(Filter<V>
the filter to be adapted adaptee, Function<T, V> the converter function to apply converter)
Deprecated
for removal since 6.0. without replacement
Return a filter that will include elements if and only if the adapted
|
| public FilterResult | |
| public static <T> Filter | composeFilters(Filter<T>...
the array of filters to compose; never filters)nullReturn a filter that will include elements if and only if all of the
filters in the supplied array of |
| public static <T> Filter | composeFilters(Collection<? extends Filter<T>>
the collection of filters to compose; never filters)nullReturn a filter that will include elements if and only if all of the
filters in the supplied collection of |
| public default Predicate | toPredicate()
Return a |
| adaptFilter | back to summary |
|---|---|
| public static <T, V> Filter Deprecated for removal since 6.0. without replacement Return a filter that will include elements if and only if the adapted
| |
| apply | back to summary |
|---|---|
| public FilterResult apply(T object) Apply this filter to the supplied object. | |
| composeFilters | back to summary |
|---|---|
| public static <T> Filter Return a filter that will include elements if and only if all of the
filters in the supplied array of If the array is empty, the returned filter will include all elements it is asked to filter.
| |
| composeFilters | back to summary |
|---|---|
| public static <T> Filter Return a filter that will include elements if and only if all of the
filters in the supplied collection of If the collection is empty, the returned filter will include all elements it is asked to filter.
| |
| toPredicate | back to summary |
|---|---|
| public default Predicate Return a | |