public static enum RestrictTo.Scope extends Enum<RestrictTo.Scope>
Enum Constant and Description |
---|
GROUP_ID
Restrict usage to code within the same group ID (based on gradle
group ID).
|
SUBCLASSES
Restrict usage to subclasses of the enclosing class.
|
TESTS
Restrict usage to tests.
|
Modifier and Type | Method and Description |
---|---|
static RestrictTo.Scope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RestrictTo.Scope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RestrictTo.Scope GROUP_ID
public static final RestrictTo.Scope TESTS
public static final RestrictTo.Scope SUBCLASSES
Note: This scope should not be used to annotate packages.
public static RestrictTo.Scope[] values()
for (RestrictTo.Scope c : RestrictTo.Scope.values()) System.out.println(c);
public static RestrictTo.Scope valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null