Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

Size

public abstract @interface Size
implements Annotation

androidx.annotation.Size


Denotes that the annotated element should have a given size or length. Note that "-1" means "unset". Typically used with a parameter or return value of type array or collection.

Example:

public void getLocationInWindow(@Size(2) int[] location) {
      ...
  }
 

Summary

Public methods

long max()

A maximum size, inclusive

long min()

A minimum size, inclusive

long multiple()

The size must be a multiple of this factor

long value()

An exact size (or -1 if not specified)

Inherited methods

Public methods

max

public long max ()

A maximum size, inclusive

Returns
long

min

public long min ()

A minimum size, inclusive

Returns
long

multiple

public long multiple ()

The size must be a multiple of this factor

Returns
long

value

public long value ()

An exact size (or -1 if not specified)

Returns
long