public enum Protection extends Enum<Protection> implements Keyword
| Modifier and Type | Method and Description |
|---|---|
static Protection |
getProtection(Keyword... keywords) |
static Protection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Protection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Protection PUBLIC
public static final Protection PROTECTED
public static final Protection DEFAULT
public static final Protection PRIVATE
public static Protection[] values()
for (Protection c : Protection.values()) System.out.println(c);
public static Protection 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 static Protection getProtection(Keyword... keywords)
Copyright © 2014. All Rights Reserved.