public enum PermissionVariant extends java.lang.Enum<PermissionVariant> implements EnumClass<java.lang.Integer>
| Enum Constant and Description |
|---|
ALLOWED
Allowed
|
DISALLOWED
Disallowed
|
NOTSET
Permission not selected
|
| Modifier and Type | Method and Description |
|---|---|
static PermissionVariant |
fromId(java.lang.Integer id) |
java.lang.String |
getColor() |
java.lang.Integer |
getId() |
static PermissionVariant |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PermissionVariant[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PermissionVariant ALLOWED
public static final PermissionVariant DISALLOWED
public static final PermissionVariant NOTSET
public static PermissionVariant[] values()
for (PermissionVariant c : PermissionVariant.values()) System.out.println(c);
public static PermissionVariant valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getColor()
public java.lang.Integer getId()
public static PermissionVariant fromId(java.lang.Integer id)