IntRange

@Documented  @Retention(value = CLASS)  @Target(value = ) annotation 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() {
     ...
 }

Summary

Public methods

abstract long

Smallest value, inclusive

abstract long
to()

Largest value, inclusive

Public methods

from

public abstract long from()

Smallest value, inclusive

to

public abstract long to()

Largest value, inclusive