@API(value=Experimental)
public class FilterResult
extends java.lang.Object
Filter.| Modifier and Type | Method and Description |
|---|---|
boolean |
excluded() |
static FilterResult |
excluded(java.lang.String reason)
Factory for creating excluded results.
|
java.util.Optional<java.lang.String> |
getReason() |
boolean |
included() |
static FilterResult |
included(java.lang.String reason)
Factory for creating included results.
|
static FilterResult |
includedIf(boolean included)
Factory for creating filter results based on the condition given.
|
static FilterResult |
includedIf(boolean included,
java.util.function.Supplier<java.lang.String> inclusionReasonSupplier,
java.util.function.Supplier<java.lang.String> exclusionReasonSupplier)
Factory for creating filter results based on the condition given.
|
java.lang.String |
toString() |
public static FilterResult included(java.lang.String reason)
reason - the reason why the result was includedFilterResult with the given reasonpublic static FilterResult excluded(java.lang.String reason)
reason - the reason why the result was excludedFilterResult with the given reasonpublic static FilterResult includedIf(boolean included)
included - whether or not the returned FilterResult should be includedFilterResult for the given conditionpublic static FilterResult includedIf(boolean included, java.util.function.Supplier<java.lang.String> inclusionReasonSupplier, java.util.function.Supplier<java.lang.String> exclusionReasonSupplier)
included - whether or not the returned FilterResult should be includedinclusionReasonSupplier - supplier for the reason in case of inclusionexclusionReasonSupplier - supplier for the reason in case of exclusionFilterResult for the given conditionpublic boolean included()
true if the filtered object should be included in the test planpublic boolean excluded()
true if the filtered object should be excluded from the test planpublic java.util.Optional<java.lang.String> getReason()
public java.lang.String toString()
toString in class java.lang.Object