|
|
|
@ -153,7 +153,10 @@ public class ConditionOutcome { |
|
|
|
* @param outcome the outcome to inverse |
|
|
|
* @param outcome the outcome to inverse |
|
|
|
* @return the inverse of the condition outcome |
|
|
|
* @return the inverse of the condition outcome |
|
|
|
* @since 1.3.0 |
|
|
|
* @since 1.3.0 |
|
|
|
|
|
|
|
* @deprecated since 3.5.0 for removal in 3.6.0 in favor of |
|
|
|
|
|
|
|
* {@link #ConditionOutcome(boolean, ConditionMessage)} |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Deprecated(since = "3.5.0", forRemoval = true) |
|
|
|
public static ConditionOutcome inverse(ConditionOutcome outcome) { |
|
|
|
public static ConditionOutcome inverse(ConditionOutcome outcome) { |
|
|
|
return new ConditionOutcome(!outcome.isMatch(), outcome.getConditionMessage()); |
|
|
|
return new ConditionOutcome(!outcome.isMatch(), outcome.getConditionMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
|