Google は、黒人コミュニティに対する人種平等の促進に取り組んでいます。取り組みを見る

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