Summary:
Methods
| Inherited Methods
IntRange
public
abstract
@interface
IntRange
implements
Annotation
androidx.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 | |
---|---|
long
|
from()
Smallest value, inclusive |
long
|
to()
Largest value, inclusive |
Inherited methods | |
---|---|
Public methods
from
public long from ()
Smallest value, inclusive
Returns | |
---|---|
long |
to
public long to ()
Largest value, inclusive
Returns | |
---|---|
long |