static <T1,T2> Variant2<T1,T2> |
Variant2.make(T1 item,
TypeGuard1... guard) |
Creates a new Variant given an item of type T1 .
|
static <T1,T2> Variant2<T1,T2> |
Variant2.make(T2 item,
TypeGuard2... guard) |
Creates a new Variant given an item of type T2 .
|
static <T1,T2> Variant2<T1,T2> |
Variant2.make1(T1 item) |
Creates a new Variant given an item of type T1 explicitly
placed at index 0.
|
static <T1,T2> Variant2<T1,T2> |
Variant2.make2(T2 item) |
Creates a new Variant given an item of type T2 explicitly
placed at index 1.
|
<U1,U2> Variant2<U1,U2> |
Variant2.map(java.util.function.Function<T1,U1> func1,
java.util.function.Function<T2,U2> func2) |
Applies one of the given functions to the variant depending on the type
currently inhabiting the variant.
|