|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.juoserver.model.EnumUtils
public class EnumUtils
Constructor Summary | |
---|---|
EnumUtils()
|
Method Summary | ||
---|---|---|
static
|
byCode(int code,
Class<T> clazz)
Retrieves the enum constant belonging to the specified enum class ( clazz ) and identified by the provided
integer code through the Coded interface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EnumUtils()
Method Detail |
---|
public static <T extends Enum<T> & Coded> T byCode(int code, Class<T> clazz)
clazz
) and identified by the provided
integer code
through the Coded
interface.
null is returned in case the enum type contains
no constant that can be identified by the specified
code
.
T
- the enum type modeled by the specified enum
class clazz
code
- the integer code that identifies the enum
constant to be returnedclazz
- the enum class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |