Annotation Type EnsuresMinLenIf
-
@Documented @Retention(RUNTIME) @Target({METHOD,CONSTRUCTOR}) @ConditionalPostconditionAnnotation(qualifier=MinLen.class) @InheritedAnnotation @Repeatable(List.class) public @interface EnsuresMinLenIf
Indicates that the value of the given expression is a sequence containing at least the given number of elements, if the method returns the given result (either true or false).When the annotated method returns
result, then all the expressions inexpressionare considered to beMinLen(targetValue).- See Also:
MinLen
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description String[]expressionReturns Java expression(s) that are a sequence with the given minimum length after the method returnsresult().booleanresultReturns the return value of the method under which the postcondition to hold.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description inttargetValueReturns the minimum number of elements in the sequence.
-
-
-
-
targetValue
@QualifierArgument("value") int targetValue
Returns the minimum number of elements in the sequence.- Returns:
- the minimum number of elements in the sequence
- Default:
- 0
-
-