Annotation Type LengthOf
-
@Documented @Retention(RUNTIME) @Target({TYPE_USE,TYPE_PARAMETER,METHOD}) public @interface LengthOf
An integer that, for each of the given sequences, is equal to the sequence's length.This is treated as an
IndexOrHighannotation internally. This is an implementation detail that may change in the future, when this type may be used to implement more precise refinements.The usual use case for the
LengthOfannotation is in the defintions of custom collections. Consider the signature of java.lang.String#length():public @LengthOf("this") int length()
-
-
Element Detail
-
value
String[] value
Sequences that the annotated expression is equal to the length of.
-
-