|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.types.samples.TestRoles
public final class TestRoles
Enumerated type of a test roles. Instances of this class are immutable. The following test roless are defined:
| Field Summary | |
|---|---|
static TestRoles |
FOO_R10021
Experts (value: FOO.R10021). |
static TestRoles |
FOO_R10022
Guests (value: FOO.R10022). |
static String |
TYPE_NAME
The name of this type. |
static Map |
VALUE_MAP
Immutable map using the name string as key holding the TestRoless as values. |
static List |
VALUES
Immutable list of the TestRoless. |
| Method Summary | |
|---|---|
static TestRoles |
fromInt(int i)
Creates a TestRoles object from its int representation. |
static TestRoles |
fromString(String str)
Creates a TestRoles object from its String representation. |
int |
toInt()
Returns the int representation of this test roles. |
String |
toString()
Returns the String representation of this test roles. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE_NAME
public static final TestRoles FOO_R10021
public static final TestRoles FOO_R10022
public static final List VALUES
public static final Map VALUE_MAP
| Method Detail |
|---|
public static TestRoles fromInt(int i)
throws ArgumentMalformedException
i - the integer representation of the test roles.
ArgumentMalformedException - If the assigned int value isn't
listed in the internal test roles table.
public static TestRoles fromString(String str)
throws ArgumentMalformedException
str - the string representation of the
test roles.
ArgumentMalformedException - If the given str value isn't
listed in the internal test roles table.public int toInt()
toInt in interface EnumTypepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||