Package eu.bandm.tools.util.classes
Class 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>
The product of multiple DynamicEnum realized as one DynamicEnum of tuples.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.bandm.tools.util.classes.DynamicEnum
DynamicEnum.Coproduct<T>, DynamicEnum.Item<T>, DynamicEnum.Product<T>
-
Constructor Summary
ConstructorDescriptionProduct
(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 Summary
Modifier and TypeMethodDescriptiontuple
(DynamicEnum.Item<? extends T>... elems) Deliver the item of the product enumeration which corresponds to the list of items of the underlying enumerations.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.Methods inherited from class eu.bandm.tools.util.classes.DynamicEnum
add, contains, containsSemichecked, containsUnchecked, get, indexOf, indexOfUnchecked, items, iterator, seal, size
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.bandm.tools.ops.Index
comparator, enumerate, isEmpty
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
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
Deliver the item of the product enumeration which corresponds to the list of items of the underlying enumerations. -
tuple
Deliver the item of the product enumeration which corresponds to the list of items of the underlying enumerations.
-