public enum GMAction extends Enum<GMAction>
| Enum Constant and Description |
|---|
CREATE
"create" (1). |
QUERY
"query" (2). |
REPLACE
"replace" (3). |
REVOKE
"revoke" (4). |
UPDATE
"update" (5). |
| Modifier and Type | Method and Description |
|---|---|
static GMAction |
getByValue(short value)
Find an instance of this enum by a value.
|
short |
getValue()
Get the integer representation of this enum instance.
|
static GMAction |
parse(String action)
Convert
String to GMAction. |
static GMAction[] |
toArray(int bits) |
static int |
toBits(EnumSet<GMAction> set) |
static EnumSet<GMAction> |
toSet(GMAction[] array) |
static EnumSet<GMAction> |
toSet(int bits) |
String |
toString() |
static GMAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GMAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GMAction CREATE
"create" (1).public static final GMAction QUERY
"query" (2).public static final GMAction REPLACE
"replace" (3).public static final GMAction REVOKE
"revoke" (4).public static final GMAction UPDATE
"update" (5).public static GMAction[] values()
for (GMAction c : GMAction.values()) System.out.println(c);
public static GMAction 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 short getValue()
public static GMAction getByValue(short value)
value - The integer representation of the instance to find.null if not found.public static GMAction parse(String action)
String to GMAction.action - A grant management action. For example, "query".GMAction instance, or null.public static GMAction[] toArray(int bits)
Copyright © 2022. All rights reserved.