Class MultipleConditionCheck
java.lang.Object
de.xima.fc.workflow.processor.processing.MultipleConditionCheck
- All Implemented Interfaces:
Predicate<MultipleConditionCheck.MultipleConditionData>
@Deprecated
public final class MultipleConditionCheck
extends Object
implements Predicate<MultipleConditionCheck.MultipleConditionData>
Deprecated.
Predicate that combines multiple single conditions via a
EMultipleConditionCombinationType
.- Author:
- XIMA MEDIA GmbH
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Deprecated.ImplementICompoundConditionData
yourself, or just pass the single arguments toCompoundConditionEvaluator.test(EMultipleConditionCombinationType, String, Map)
. -
Constructor Summary
ConstructorsConstructorDescriptionMultipleConditionCheck
(Locale locale) Deprecated.Creates a new multiple condition check that combines the results of individual checks. -
Method Summary
Modifier and TypeMethodDescription<T> boolean
test
(EMultipleConditionCombinationType combinationType, String customExpression, Iterable<T> items, Function<T, Map.Entry<String, Boolean>> singleEvaluator) Deprecated.Combines the given conditions via the combination type.boolean
test
(EMultipleConditionCombinationType combinationType, String customExpression, Map<String, Boolean> singleResults) Deprecated.Combines the given conditions via the combination type.boolean
Deprecated.
-
Constructor Details
-
MultipleConditionCheck
Deprecated.Creates a new multiple condition check that combines the results of individual checks.- Parameters:
locale
- Locale to use for error message.
-
-
Method Details
-
test
public <T> boolean test(EMultipleConditionCombinationType combinationType, String customExpression, Iterable<T> items, Function<T, Map.Entry<String, Boolean>> singleEvaluator) Deprecated.Combines the given conditions via the combination type.- Type Parameters:
T
- Type of the items.- Parameters:
combinationType
- How to combine the individual results.customExpression
- Custom combination expression forEMultipleConditionCombinationType.CUSTOM
.items
- A list of items representing the individual conditions.singleEvaluator
- Takes a single condition and evaluates it. The key must be the name of the condition forEMultipleConditionCombinationType.CUSTOM
.- Returns:
- The result of combining the individual results via the given combination type.
-
test
public boolean test(EMultipleConditionCombinationType combinationType, String customExpression, Map<String, Boolean> singleResults) Deprecated.Combines the given conditions via the combination type.- Parameters:
combinationType
- How to combine the individual results.singleResults
- Outcomes of the individual tests. The key is the variable name of the test forEMultipleConditionCombinationType.CUSTOM
.customExpression
- Custom combination expression forEMultipleConditionCombinationType.CUSTOM
.- Returns:
- The result of combining the individual results via the given combination type.
-
test
Deprecated.- Specified by:
test
in interfacePredicate<MultipleConditionCheck.MultipleConditionData>
-
CompoundConditionEvaluator
.