public enum KeyPermission extends Enum<KeyPermission>
Enum Constant and Description |
---|
FULL
Enum value Full.
|
READ
Enum value Read.
|
Modifier and Type | Method and Description |
---|---|
static KeyPermission |
fromString(String value)
Parses a serialized value to a KeyPermission instance.
|
String |
toString() |
static KeyPermission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyPermission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyPermission READ
public static final KeyPermission FULL
public static KeyPermission[] values()
for (KeyPermission c : KeyPermission.values()) System.out.println(c);
public static KeyPermission 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 KeyPermission fromString(String value)
value
- the serialized value to parse.public String toString()
toString
in class Enum<KeyPermission>
Copyright © 2019. All rights reserved.