Class DynamicEnum.Item<T>

java.lang.Object
eu.bandm.tools.util.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 Details

    • whole

      protected final DynamicEnum<T> whole
      The containing enumeration.
    • index

      protected final int index
      Index starting with 0.
    • data

      protected final T data
      The explicitly added data value.
  • Constructor Details

  • Method Details