E
- the element typepublic class DynaEnum<E extends DynaEnum<E>> extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
ordinal |
Modifier | Constructor and Description |
---|---|
protected |
DynaEnum(String name,
int ordinal)
Instantiates a new dyna enum.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
clone() |
int |
compareTo(E other) |
boolean |
equals(Object other) |
Class<E> |
getDeclaringClass() |
int |
hashCode() |
String |
name() |
int |
ordinal()
Ordinal.
|
String |
toString() |
static <T extends DynaEnum<T>> |
valueOf(Class<T> enumType,
String name)
Value of.
|
static <E> DynaEnum<? extends DynaEnum<?>>[] |
values()
Values.
|
static <E> E[] |
values(Class<E> enumType)
Values.
|
protected DynaEnum(String name, int ordinal)
name
- the nameordinal
- the ordinalpublic final String name()
public final int ordinal()
protected final Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public final int compareTo(E other)
public static <T extends DynaEnum<T>> T valueOf(Class<T> enumType, String name)
T
- the generic typeenumType
- the enum typename
- the namepublic static <E> DynaEnum<? extends DynaEnum<?>>[] values()
E
- the element typepublic static <E> E[] values(Class<E> enumType)
E
- the element typeenumType
- the enum typeCopyright © 2012–2015 tinyMediaManager. All rights reserved.