IntRange

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 @NonNull long

Smallest value, inclusive

abstract @NonNull long
to()

Largest value, inclusive

Public methods

from

@NonNull
public abstract long from()

Smallest value, inclusive

to

@NonNull
public abstract long to()

Largest value, inclusive