mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-10-06 10:27:42 +02:00
Added Conditional#negated
This commit is contained in:
parent
2b620f97f1
commit
600e90873e
@ -41,4 +41,14 @@ public @interface Conditional {
|
||||
*/
|
||||
String value();
|
||||
|
||||
}
|
||||
/**
|
||||
* Reverse the condition.
|
||||
* <p>
|
||||
* Example:
|
||||
* - Method with {@code Conditional("expires", negated = true)} will only be called when the condition "expires" is false.
|
||||
*
|
||||
* @return {@code false} by default.
|
||||
*/
|
||||
boolean negated() default false;
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user