@Documented
@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface Invariant
When run time checking of contracts is enabled, class invariants
are checked on entry and exit of public and package-private
methods, and throw a InvariantError when
they are violated.
| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String[] |
value
The list of invariant expressions that must be met by the
annotated type, written as strings.
|