Package eu.bandm.tools.util.classes
Class DynamicEnum.Item<T>
java.lang.Object
eu.bandm.tools.util.classes.DynamicEnum.Item<T>
- All Implemented Interfaces:
Serializable
,Comparable<DynamicEnum.Item<T>>
- Enclosing class:
- DynamicEnum<T>
public static class DynamicEnum.Item<T>
extends Object
implements Comparable<DynamicEnum.Item<T>>, Serializable
Wrapper for one single data item added to the enumeration.
An instance is created with every call to
DynamicEnum.add(T)
.- See Also:
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Item
(DynamicEnum<T> whole, int index, T data) Only constructor. -
Method Summary
-
Field Details
-
whole
The containing enumeration. -
index
protected final int indexIndex starting with 0. -
data
The explicitly added data value.
-
-
Constructor Details
-
Item
-
-
Method Details