public static class DynamicEnum.Coproduct<T> extends DynamicEnum<Map.Entry<Integer,T>>
DynamicEnum.Coproduct<T>, DynamicEnum.Item<T>, DynamicEnum.Product<T>
Constructor and Description |
---|
Coproduct(List<? extends DynamicEnum<? extends T>> cases) |
Modifier and Type | Method and Description |
---|---|
DynamicEnum.Item<Map.Entry<Integer,T>> |
injection(int index,
DynamicEnum.Item<? extends T> item) |
add, contains, containsSemichecked, containsUnchecked, get, indexOf, indexOfUnchecked, items, iterator, seal, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public Coproduct(List<? extends DynamicEnum<? extends T>> cases)
public DynamicEnum.Item<Map.Entry<Integer,T>> injection(int index, DynamicEnum.Item<? extends T> item)
see also the complete user documentation .