Package icyllis.modernui.annotation
Annotation Interface IntRange
@Documented
@Retention(CLASS)
@Target({METHOD,PARAMETER,FIELD,LOCAL_VARIABLE,ANNOTATION_TYPE})
public @interface IntRange
Denotes that the annotated element should be an int or long in the given range.
Example:
@IntRange(from=0,to=255)
public int getAlpha() {
...
}
-
Optional Element Summary
-
Element Details
-
from
long fromSmallest value in the range, inclusive.- Default:
-9223372036854775808L
-
to
long toLargest value in the range, inclusive.- Default:
9223372036854775807L
-