Class DynamicEnum.Product<T>

java.lang.Object
eu.bandm.tools.util.DynamicEnum<List<T>>
eu.bandm.tools.util.DynamicEnum.Product<T>
Type Parameters:
T - a common supertype of the data type of all DynamicEnum.
All Implemented Interfaces:
Index<DynamicEnum.Item<List<T>>>, Serializable, Iterable<DynamicEnum.Item<List<T>>>
Enclosing class:
DynamicEnum<T>

public static class DynamicEnum.Product<T> extends DynamicEnum<List<T>>
The product of multiple DynamicEnum realized as one DynamicEnum of tuples.
See Also:
  • Constructor Details

    • Product

      Product(List<? extends DynamicEnum<? extends T>> cases)
      Construct a product enumeration from a list of DynamicEnum, which define the tupel positions from left to right.
  • Method Details

    • tuple

      public DynamicEnum.Item<List<T>> tuple(List<? extends DynamicEnum.Item<? extends T>> elems)
      Deliver the item of the product enumeration which corresponds to the list of items of the underlying enumerations.
    • tuple

      public DynamicEnum.Item<List<T>> tuple(DynamicEnum.Item<? extends T>... elems)
      Deliver the item of the product enumeration which corresponds to the list of items of the underlying enumerations.