public enum PermissionDefault extends Enum<PermissionDefault>
Modifier and Type | Method and Description |
---|---|
static PermissionDefault |
getByName(String name)
Looks up a PermissionDefault by name
|
boolean |
getValue(boolean op)
Calculates the value of this PermissionDefault for the given operator
value
|
String |
toString() |
static PermissionDefault |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PermissionDefault[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PermissionDefault TRUE
public static final PermissionDefault FALSE
public static final PermissionDefault OP
public static final PermissionDefault NOT_OP
public static PermissionDefault[] values()
for (PermissionDefault c : PermissionDefault.values()) System.out.println(c);
public static PermissionDefault 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 boolean getValue(boolean op)
op
- If the target is oppublic static PermissionDefault getByName(String name)
name
- Name of the defaultpublic String toString()
toString
in class Enum<PermissionDefault>
Copyright © 2014. All rights reserved.