public enum Visibility extends Enum<Visibility>
| Enum Constant and Description |
|---|
INTERNAL
May be accessed only from the same source file or by inheritance
|
PUBLIC
May be accessed anywhere
|
SHARED
May be accessed from the associated module and its submodules
|
| Modifier and Type | Method and Description |
|---|---|
int |
getModifier()
Numeric representation of visibility
|
static Visibility |
of(Object visibility)
Returns the enum constant of this type with the specified name
|
static Visibility |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Visibility[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Visibility PUBLIC
public static final Visibility SHARED
public static final Visibility INTERNAL
public static Visibility[] values()
for (Visibility c : Visibility.values()) System.out.println(c);
public static 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 nullpublic int getModifier()
public static Visibility of(Object visibility)
visibility - the char sequence that represents visibilityCopyright © 2020. All rights reserved.