Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. 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