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 | |
public Optional | |
public static FilterResult | |
public boolean | |
public static FilterResult | Returns: a validFilterResult for the given conditionwhether or not 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 or not the filtered object should be included included, Supplier<String> supplier for the reason in case of inclusion inclusionReasonSupplier, Supplier<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, String reason) |
excluded | back to summary |
---|---|
public static FilterResult excluded(String reason) Factory for creating excluded results.
|
excluded | back to summary |
---|---|
public boolean excluded()
|
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(String reason) Factory for creating included results.
|
included | back to summary |
---|---|
public boolean included()
|
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<String> inclusionReasonSupplier, Supplier<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. |