Class TemplateFactory
- java.lang.Object
-
- edu.wpi.grip.core.operations.templated.TemplateFactory
-
public final class TemplateFactory extends java.lang.Object
Allows you to easily createSupplier<Operation>
using onlySocketHints
and a lambda that will be run as part of theOperation.perform()
method.
-
-
Constructor Summary
Constructors Constructor Description TemplateFactory(InputSocket.Factory inputSocketFactory, OutputSocket.Factory outputSocketFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T1,R>
java.util.function.Supplier<Operation>create(SocketHint<T1> t1SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.OneSourceOneDestinationOperation.Performer<T1,R> performer)
<T1,T2,R>
java.util.function.Supplier<Operation>create(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.TwoSourceOneDestinationOperation.Performer<T1,T2,R> performer)
<T1,T2,T3,R>
java.util.function.Supplier<Operation>create(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<T3> t3SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.ThreeSourceOneDestinationOperation.Performer<T1,T2,T3,R> performer)
<T1,T2,T3,T4,R>
java.util.function.Supplier<Operation>create(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<T3> t3SocketHint, SocketHint<T4> t4SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.FourSourceOneDestinationOperation.Performer<T1,T2,T3,T4,R> performer)
<T1,T2,T3,T4,T5,R>
java.util.function.Supplier<Operation>create(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<T3> t3SocketHint, SocketHint<T4> t4SocketHint, SocketHint<T5> t5SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.FiveSourceOneDestinationOperation.Performer<T1,T2,T3,T4,T5,R> performer)
<T1,T2,T3,T4,T5,T6,R>
java.util.function.Supplier<Operation>create(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<T3> t3SocketHint, SocketHint<T4> t4SocketHint, SocketHint<T5> t5SocketHint, SocketHint<T6> t6SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.SixSourceOneDestinationOperation.Performer<T1,T2,T3,T4,T5,T6,R> performer)
<T1,T2,T3,T4,T5,T6,T7,R>
java.util.function.Supplier<Operation>create(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<T3> t3SocketHint, SocketHint<T4> t4SocketHint, SocketHint<T5> t5SocketHint, SocketHint<T6> t6SocketHint, SocketHint<T7> t7SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.SevenSourceOneDestinationOperation.Performer<T1,T2,T3,T4,T5,T6,T7,R> performer)
java.util.function.Supplier<Operation>
createAllMatOneSource(edu.wpi.grip.core.operations.templated.OneSourceOneDestinationOperation.Performer<MatWrapper,MatWrapper> performer)
java.util.function.Supplier<Operation>
createAllMatOneSource(SocketHint<MatWrapper> matSocketHint, SocketHint<MatWrapper> matSocketHint2, edu.wpi.grip.core.operations.templated.OneSourceOneDestinationOperation.Performer<MatWrapper,MatWrapper> performer)
java.util.function.Supplier<Operation>
createAllMatOneSourceCuda(edu.wpi.grip.core.operations.templated.OneSourceOneDestinationCudaOperation.Performer<MatWrapper,MatWrapper> performer)
java.util.function.Supplier<Operation>
createAllMatTwoSource(edu.wpi.grip.core.operations.templated.TwoSourceOneDestinationOperation.Performer<MatWrapper,MatWrapper,MatWrapper> performer)
java.util.function.Supplier<Operation>
createAllMatTwoSource(SocketHint<MatWrapper> matSocketHint, SocketHint<MatWrapper> matSocketHint2, SocketHint<MatWrapper> matSocketHint3, edu.wpi.grip.core.operations.templated.TwoSourceOneDestinationOperation.Performer<MatWrapper,MatWrapper,MatWrapper> performer)
java.util.function.Supplier<Operation>
createAllMatTwoSourceCuda(edu.wpi.grip.core.operations.templated.TwoSourceOneDestinationCudaOperation.Performer<MatWrapper,MatWrapper,MatWrapper> performer)
<T1,R>
java.util.function.Supplier<Operation>createCuda(SocketHint<T1> t1SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.OneSourceOneDestinationCudaOperation.Performer<T1,R> performer)
<T1,T2,R>
java.util.function.Supplier<Operation>createCuda(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.TwoSourceOneDestinationCudaOperation.Performer<T1,T2,R> performer)
<T1,T2,T3,R>
java.util.function.Supplier<Operation>createCuda(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<T3> t3SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.ThreeSourceOneDestinationCudaOperation.Performer<T1,T2,T3,R> performer)
<T1,T2,T3,T4,R>
java.util.function.Supplier<Operation>createCuda(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<T3> t3SocketHint, SocketHint<T4> t4SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.FourSourceOneDestinationCudaOperation.Performer<T1,T2,T3,T4,R> performer)
<T1,T2,T3,T4,T5,R>
java.util.function.Supplier<Operation>createCuda(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<T3> t3SocketHint, SocketHint<T4> t4SocketHint, SocketHint<T5> t5SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.FiveSourceOneDestinationCudaOperation.Performer<T1,T2,T3,T4,T5,R> performer)
<T1,T2,T3,T4,T5,T6,R>
java.util.function.Supplier<Operation>createCuda(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<T3> t3SocketHint, SocketHint<T4> t4SocketHint, SocketHint<T5> t5SocketHint, SocketHint<T6> t6SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.SixSourceOneDestinationCudaOperation.Performer<T1,T2,T3,T4,T5,T6,R> performer)
<T1,T2,T3,T4,T5,T6,T7,R>
java.util.function.Supplier<Operation>createCuda(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<T3> t3SocketHint, SocketHint<T4> t4SocketHint, SocketHint<T5> t5SocketHint, SocketHint<T6> t6SocketHint, SocketHint<T7> t7SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.SevenSourceOneDestinationCudaOperation.Performer<T1,T2,T3,T4,T5,T6,T7,R> performer)
-
-
-
Constructor Detail
-
TemplateFactory
public TemplateFactory(InputSocket.Factory inputSocketFactory, OutputSocket.Factory outputSocketFactory)
-
-
Method Detail
-
create
public <T1,R> java.util.function.Supplier<Operation> create(SocketHint<T1> t1SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.OneSourceOneDestinationOperation.Performer<T1,R> performer)
-
create
public <T1,T2,R> java.util.function.Supplier<Operation> create(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.TwoSourceOneDestinationOperation.Performer<T1,T2,R> performer)
-
create
public <T1,T2,T3,R> java.util.function.Supplier<Operation> create(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<T3> t3SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.ThreeSourceOneDestinationOperation.Performer<T1,T2,T3,R> performer)
-
create
public <T1,T2,T3,T4,R> java.util.function.Supplier<Operation> create(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<T3> t3SocketHint, SocketHint<T4> t4SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.FourSourceOneDestinationOperation.Performer<T1,T2,T3,T4,R> performer)
-
create
public <T1,T2,T3,T4,T5,R> java.util.function.Supplier<Operation> create(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<T3> t3SocketHint, SocketHint<T4> t4SocketHint, SocketHint<T5> t5SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.FiveSourceOneDestinationOperation.Performer<T1,T2,T3,T4,T5,R> performer)
-
create
public <T1,T2,T3,T4,T5,T6,R> java.util.function.Supplier<Operation> create(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<T3> t3SocketHint, SocketHint<T4> t4SocketHint, SocketHint<T5> t5SocketHint, SocketHint<T6> t6SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.SixSourceOneDestinationOperation.Performer<T1,T2,T3,T4,T5,T6,R> performer)
-
create
public <T1,T2,T3,T4,T5,T6,T7,R> java.util.function.Supplier<Operation> create(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<T3> t3SocketHint, SocketHint<T4> t4SocketHint, SocketHint<T5> t5SocketHint, SocketHint<T6> t6SocketHint, SocketHint<T7> t7SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.SevenSourceOneDestinationOperation.Performer<T1,T2,T3,T4,T5,T6,T7,R> performer)
-
createCuda
public <T1,R> java.util.function.Supplier<Operation> createCuda(SocketHint<T1> t1SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.OneSourceOneDestinationCudaOperation.Performer<T1,R> performer)
-
createCuda
public <T1,T2,R> java.util.function.Supplier<Operation> createCuda(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.TwoSourceOneDestinationCudaOperation.Performer<T1,T2,R> performer)
-
createCuda
public <T1,T2,T3,R> java.util.function.Supplier<Operation> createCuda(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<T3> t3SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.ThreeSourceOneDestinationCudaOperation.Performer<T1,T2,T3,R> performer)
-
createCuda
public <T1,T2,T3,T4,R> java.util.function.Supplier<Operation> createCuda(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<T3> t3SocketHint, SocketHint<T4> t4SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.FourSourceOneDestinationCudaOperation.Performer<T1,T2,T3,T4,R> performer)
-
createCuda
public <T1,T2,T3,T4,T5,R> java.util.function.Supplier<Operation> createCuda(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<T3> t3SocketHint, SocketHint<T4> t4SocketHint, SocketHint<T5> t5SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.FiveSourceOneDestinationCudaOperation.Performer<T1,T2,T3,T4,T5,R> performer)
-
createCuda
public <T1,T2,T3,T4,T5,T6,R> java.util.function.Supplier<Operation> createCuda(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<T3> t3SocketHint, SocketHint<T4> t4SocketHint, SocketHint<T5> t5SocketHint, SocketHint<T6> t6SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.SixSourceOneDestinationCudaOperation.Performer<T1,T2,T3,T4,T5,T6,R> performer)
-
createCuda
public <T1,T2,T3,T4,T5,T6,T7,R> java.util.function.Supplier<Operation> createCuda(SocketHint<T1> t1SocketHint, SocketHint<T2> t2SocketHint, SocketHint<T3> t3SocketHint, SocketHint<T4> t4SocketHint, SocketHint<T5> t5SocketHint, SocketHint<T6> t6SocketHint, SocketHint<T7> t7SocketHint, SocketHint<R> rSocketHint, edu.wpi.grip.core.operations.templated.SevenSourceOneDestinationCudaOperation.Performer<T1,T2,T3,T4,T5,T6,T7,R> performer)
-
createAllMatTwoSource
public java.util.function.Supplier<Operation> createAllMatTwoSource(SocketHint<MatWrapper> matSocketHint, SocketHint<MatWrapper> matSocketHint2, SocketHint<MatWrapper> matSocketHint3, edu.wpi.grip.core.operations.templated.TwoSourceOneDestinationOperation.Performer<MatWrapper,MatWrapper,MatWrapper> performer)
-
createAllMatTwoSource
public java.util.function.Supplier<Operation> createAllMatTwoSource(edu.wpi.grip.core.operations.templated.TwoSourceOneDestinationOperation.Performer<MatWrapper,MatWrapper,MatWrapper> performer)
-
createAllMatTwoSourceCuda
public java.util.function.Supplier<Operation> createAllMatTwoSourceCuda(edu.wpi.grip.core.operations.templated.TwoSourceOneDestinationCudaOperation.Performer<MatWrapper,MatWrapper,MatWrapper> performer)
-
createAllMatOneSource
public java.util.function.Supplier<Operation> createAllMatOneSource(SocketHint<MatWrapper> matSocketHint, SocketHint<MatWrapper> matSocketHint2, edu.wpi.grip.core.operations.templated.OneSourceOneDestinationOperation.Performer<MatWrapper,MatWrapper> performer)
-
createAllMatOneSource
public java.util.function.Supplier<Operation> createAllMatOneSource(edu.wpi.grip.core.operations.templated.OneSourceOneDestinationOperation.Performer<MatWrapper,MatWrapper> performer)
-
createAllMatOneSourceCuda
public java.util.function.Supplier<Operation> createAllMatOneSourceCuda(edu.wpi.grip.core.operations.templated.OneSourceOneDestinationCudaOperation.Performer<MatWrapper,MatWrapper> performer)
-
-