Package com.perfectcorp.annotation
Annotation Type IntRange
-
@Documented @Retention(SOURCE) @Target({METHOD,PARAMETER,FIELD,LOCAL_VARIABLE,ANNOTATION_TYPE}) public @interface IntRangeDenotes that the annotated element should be an int or long in the given rangeExample:
@IntRange(from=0,to=255) public int getAlpha() { ... }