public enum AccessModifierType extends Enum<AccessModifierType>
| Enum Constant and Description |
|---|
DEFAULT
Allows access by any package member
|
PRIVATE
Allows access only by declaring class
|
PROTECTED
Allows access by any inheriting class
|
PUBLIC
Allows access by any class
|
| Modifier and Type | Method and Description |
|---|---|
static AccessModifierType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccessModifierType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessModifierType DEFAULT
public static final AccessModifierType PRIVATE
public static final AccessModifierType PROTECTED
public static final AccessModifierType PUBLIC
public static AccessModifierType[] values()
for (AccessModifierType c : AccessModifierType.values()) System.out.println(c);
public static AccessModifierType 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 nullCopyright © 2014. All rights reserved.