Modifier and Type | Method and Description |
---|---|
static void |
assertIsValid(int mask)
Verificér at privilegie-maske er valid
|
static int |
getAllMask() |
boolean |
isSet(int bits) |
static boolean |
isValid(int bits) |
static void |
main(java.lang.String[] argv) |
static java.lang.String |
toString(int bits) |
static Privilege |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Privilege[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Privilege READ
public static final Privilege WRITE
public static final Privilege DELETE
public static final Privilege ADMIN
public static final Privilege EADMIN
public static Privilege[] values()
for (Privilege c : Privilege.values()) System.out.println(c);
public static Privilege 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 static int getAllMask()
public boolean isSet(int bits)
public static void assertIsValid(int mask) throws DataNotValidException
DataNotValidException
public static boolean isValid(int bits)
public static java.lang.String toString(int bits)
public static void main(java.lang.String[] argv)