public class MoOpTypeExtender
extends java.lang.Object
Constructor and Description |
---|
MoOpTypeExtender() |
Modifier and Type | Method and Description |
---|---|
static <T extends java.lang.Enum<?>> |
addEnum(java.lang.Class enumClz,
java.lang.String enumName)
Add an enum instance to the enum class given as argument
|
public static <T extends java.lang.Enum<?>> boolean addEnum(java.lang.Class enumClz, java.lang.String enumName) throws java.lang.Exception
T
- the type of the enum (implicit)enumType
- the class of the enum to be modifiedenumName
- the name of the new enum instance to be added to the class.java.lang.Exception