TYPE
- is the generic type of the enum type
.public abstract class AbstractSimpleEnumDefinition<TYPE> extends AbstractEnumDefinition<TYPE,Void>
EnumDefinition
with no category
and a
static set of enum values
. For an example see BooleanEnumDefinition
.Modifier and Type | Field and Description |
---|---|
private List<TYPE> |
enumValues |
private static long |
serialVersionUID |
Constructor and Description |
---|
AbstractSimpleEnumDefinition(TYPE... enumValues)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
EnumDefinition<Void,?> |
getCategory() |
List<TYPE> |
getEnumValues() |
getFormatter, getKey, getValue, isCachable, isMutable, setFormatter, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEnumType
private static final long serialVersionUID
@SafeVarargs public AbstractSimpleEnumDefinition(TYPE... enumValues)
enumValues
- are the static enum values
.public final EnumDefinition<Void,?> getCategory()
EnumDefinition
this EnumDefinition
is categorized by or null
for no category
(then <CATEGORY> shall be bound to Void
).public List<TYPE> getEnumValues()
getEnumValues
in class AbstractEnumDefinition<TYPE,Void>
List
of the enum values
or null
if the values are NOT
static and have to be loaded asynchronous via EnumProvider
.Copyright © 2001–2016 mmm-Team. All rights reserved.