Filter.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final Optional |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static FilterResult | |
| public boolean | Returns: true if the filtered object should be excludedReturns |
| public Optional | |
| public static FilterResult | |
| public boolean | Returns: true if the filtered object should be includedReturns |
| public static FilterResult | Returns: a validFilterResult for the given conditionwhether the filtered object should be included included)Factory for creating filter results based on the condition given. |
| public static FilterResult | Returns: a validFilterResult for the given conditionwhether the filtered object should be included included, Supplier<@Nullable String> supplier for the reason in case of inclusion inclusionReasonSupplier, Supplier<@Nullable String> supplier for the reason in case of exclusion exclusionReasonSupplier)Factory for creating filter results based on the condition given. |
| public String |
| included | back to summary |
|---|---|
| private final boolean included | |
| reason | back to summary |
|---|---|
| private final Optional<String> reason | |
| FilterResult | back to summary |
|---|---|
| private FilterResult(boolean included, @Nullable String reason) | |
| excluded | back to summary |
|---|---|
| public static FilterResult excluded(@Nullable String reason) Factory for creating excluded results.
| |
| excluded | back to summary |
|---|---|
| public boolean excluded() Returns
| |
| getReason | back to summary |
|---|---|
| public Optional Get the reason why the filtered object should be included or excluded, if available. | |
| included | back to summary |
|---|---|
| public static FilterResult included(@Nullable String reason) Factory for creating included results.
| |
| included | back to summary |
|---|---|
| public boolean included() Returns
| |
| includedIf | back to summary |
|---|---|
| public static FilterResult includedIf(boolean included) Factory for creating filter results based on the condition given.
| |
| includedIf | back to summary |
|---|---|
| public static FilterResult includedIf(boolean included, Supplier<@Nullable String> inclusionReasonSupplier, Supplier<@Nullable String> exclusionReasonSupplier) Factory for creating filter results based on the condition given.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |