Class TypeSwitch2.FunctionBuilder<I0,I1,O>
- java.lang.Object
-
- com.g2forge.alexandria.java.type.function.TypeSwitch2.FunctionBuilder<I0,I1,O>
-
- Enclosing class:
- TypeSwitch2<I0,I1,O>
public static class TypeSwitch2.FunctionBuilder<I0,I1,O> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected IFunction2<? super I0,? super I1,? extends O>
fallback
protected Collection<com.g2forge.alexandria.java.type.function.TypedFunction2<?,?,O>>
functions
-
Constructor Summary
Constructors Constructor Description FunctionBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T0,T1>
TypeSwitch2.FunctionBuilder<I0,I1,O>add(Class<T0> type0, Class<T1> type1, IConsumer2<? super T0,? super T1> consumer, O output)
<T0,T1>
TypeSwitch2.FunctionBuilder<I0,I1,O>add(Class<T0> type0, Class<T1> type1, IFunction2<? super T0,? super T1,? extends O> function)
IFunction2<I0,I1,O>
build()
TypeSwitch2.FunctionBuilder<I0,I1,O>
fallback(IFunction2<? super I0,? super I1,? extends O> function)
TypeSwitch2.FunctionBuilder<I0,I1,O>
with(IConsumer1<? super TypeSwitch2.FunctionBuilder<I0,I1,O>> consumer)
-
-
-
Field Detail
-
functions
protected final Collection<com.g2forge.alexandria.java.type.function.TypedFunction2<?,?,O>> functions
-
fallback
protected IFunction2<? super I0,? super I1,? extends O> fallback
-
-
Method Detail
-
add
public <T0,T1> TypeSwitch2.FunctionBuilder<I0,I1,O> add(Class<T0> type0, Class<T1> type1, IConsumer2<? super T0,? super T1> consumer, O output)
-
add
public <T0,T1> TypeSwitch2.FunctionBuilder<I0,I1,O> add(Class<T0> type0, Class<T1> type1, IFunction2<? super T0,? super T1,? extends O> function)
-
build
public IFunction2<I0,I1,O> build()
-
fallback
public TypeSwitch2.FunctionBuilder<I0,I1,O> fallback(IFunction2<? super I0,? super I1,? extends O> function)
-
with
public TypeSwitch2.FunctionBuilder<I0,I1,O> with(IConsumer1<? super TypeSwitch2.FunctionBuilder<I0,I1,O>> consumer)
-
-