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() {
...
}

Properties

Link copied to clipboard
val from: Long

Smallest value, inclusive

Link copied to clipboard
val to: Long

Largest value, inclusive