public static enum VisibleForTesting.Visibility extends Enum<VisibleForTesting.Visibility>
Enum Constant and Description |
---|
PACKAGE
The visibility is intended to be package.
|
PRIVATE
The visibility is intended to be private.
|
PROTECTED
The visibility is intended to be protected.
|
PUBLIC
The visibility is intended to be public.
|
TEST
The code's sole purpose is for testing and wouldn't exist otherwise.
|
Modifier and Type | Method and Description |
---|---|
static VisibleForTesting.Visibility |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VisibleForTesting.Visibility[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VisibleForTesting.Visibility PUBLIC
public static final VisibleForTesting.Visibility PACKAGE
public static final VisibleForTesting.Visibility PROTECTED
public static final VisibleForTesting.Visibility PRIVATE
public static final VisibleForTesting.Visibility TEST
For example, some objects may expose a test constructor to make injecting special values easier at test time.
public static VisibleForTesting.Visibility[] values()
for (VisibleForTesting.Visibility c : VisibleForTesting.Visibility.values()) System.out.println(c);
public static VisibleForTesting.Visibility 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