public abstract @interface IntRange
implements Annotation
android.support.annotation.IntRange |
表示注释的元素应该是给定范围内的int或long
例:
@IntRange(from=0,to=255)
public int getAlpha() {
...
}
Inherited methods |
|
---|---|
From interface java.lang.annotation.Annotation
|