|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.types.samples.TestEnumExpliciteValue
public final class TestEnumExpliciteValue
Enumerated type of a test enum explicite value. Instances of this class are immutable. The following test enum explicite values are defined:
toInt() and fromInt() methods.
| Field Summary | |
|---|---|
static TestEnumExpliciteValue |
CLUBS
The TestEnumExpliciteValue Clubs. |
static int |
CLUBS_NUMERIC
Numeric representation for TestEnumExpliciteValue Clubs. |
static TestEnumExpliciteValue |
DIAMONDS
The TestEnumExpliciteValue Diamonds. |
static int |
DIAMONDS_NUMERIC
Numeric representation for TestEnumExpliciteValue Diamonds. |
static TestEnumExpliciteValue |
HEARTS
The TestEnumExpliciteValue Hearts. |
static int |
HEARTS_NUMERIC
Numeric representation for TestEnumExpliciteValue Hearts. |
static TestEnumExpliciteValue |
SPADES
The TestEnumExpliciteValue Spades. |
static int |
SPADES_NUMERIC
Numeric representation for TestEnumExpliciteValue Spades. |
static String |
TYPE_NAME
The name of this type. |
static Map |
VALUE_MAP
Immutable map using the name string as key holding the TestEnumExpliciteValues as values. |
static List |
VALUES
Immutable list of the TestEnumExpliciteValues. |
| Method Summary | |
|---|---|
static TestEnumExpliciteValue |
fromInt(int i)
Creates a TestEnumExpliciteValue object from its numeric representation. |
static TestEnumExpliciteValue |
fromString(String str)
Creates a TestEnumExpliciteValue object from its String representation. |
int |
toInt()
Returns the int representation of this test enum explicite value. |
String |
toString()
Returns the String representation of this test enum explicite value. |
| 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 int CLUBS_NUMERIC
public static final TestEnumExpliciteValue CLUBS
public static final int DIAMONDS_NUMERIC
public static final TestEnumExpliciteValue DIAMONDS
public static final int HEARTS_NUMERIC
public static final TestEnumExpliciteValue HEARTS
public static final int SPADES_NUMERIC
public static final TestEnumExpliciteValue SPADES
public static final List VALUES
public static final Map VALUE_MAP
| Method Detail |
|---|
public static TestEnumExpliciteValue fromInt(int i)
throws ArgumentMalformedException
i - the integer representation of the test enum explicite value.
ArgumentMalformedException - If the assigned int value isn't
listed in the internal test enum explicite value table.
public static TestEnumExpliciteValue fromString(String str)
throws ArgumentMalformedException
str - the string representation of the
test enum explicite value.
ArgumentMalformedException - If the given str value isn't
listed in the internal test enum explicite value 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 | |||||||||