|
SRJRCFrames v0.1.296 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.schwarzrot.data.support.EnumUtils
public class EnumUtils
class to convert Enums into storable values or localize Enums
names
| Constructor Summary | |
|---|---|
EnumUtils()
|
|
| Method Summary | ||
|---|---|---|
static
|
getEnumForOrdinal(Class<E> any,
int ordinal)
gets an enum for the given ordinal |
|
static
|
getLabelFor(E any)
returns a localized representation for the enum name |
|
| 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 <E extends Enum<E>> E getEnumForOrdinal(Class<E> any,
int ordinal)
E - the type of the enum involvedany - the enum classordinal - the ordinal for the enum to retrieve
public static <E extends Enum<E>> String getLabelFor(E any)
E - the type of the involved enumany - the enum to retrieve a translated name for
|
SRJRCFrames v0.1.296 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||