@Documented @Target(value=METHOD) @Retention(value=RUNTIME) public @interface Requires
Ensures| Modifier and Type | Required Element and Description |
|---|---|
@Nonnull @JavaExpression String |
condition
Returns the condition that has to hold before the execution of the annotated method.
|
@Nonnull String |
message
Returns the message which is thrown if the given condition is not fulfilled.
|
@Nonnull @JavaExpression public abstract @Nonnull @JavaExpression String condition
Copyright © 2017. All rights reserved.