public final class Computers extends Object
NullaryComputerOp
,
UnaryComputerOp
,
BinaryComputerOp
Modifier and Type | Method and Description |
---|---|
static <I1,I2,O> BinaryComputerOp<I1,I2,O> |
binary(OpEnvironment ops,
Class<? extends Op> opType,
Class<O> outType,
Class<I1> in1Type,
Class<I2> in2Type,
Object... otherArgs)
Gets the best
BinaryComputerOp implementation for the given types
and arguments, populating its inputs. |
static <I1,I2,O> BinaryComputerOp<I1,I2,O> |
binary(OpEnvironment ops,
Class<? extends Op> opType,
Class<O> outType,
I1 in1,
I2 in2,
Object... otherArgs)
Gets the best
BinaryComputerOp implementation for the given types
and arguments, populating its inputs. |
static <I1,I2,O> BinaryComputerOp<I1,I2,O> |
binary(OpEnvironment ops,
Class<? extends Op> opType,
O out,
I1 in1,
I2 in2,
Object... otherArgs)
Gets the best
BinaryComputerOp implementation for the given types
and arguments, populating its inputs. |
static <O> NullaryComputerOp<O> |
nullary(OpEnvironment ops,
Class<? extends Op> opType,
Class<O> outType,
Object... otherArgs)
Gets the best
NullaryComputerOp implementation for the given types
and arguments, populating its inputs. |
static <O> NullaryComputerOp<O> |
nullary(OpEnvironment ops,
Class<? extends Op> opType,
O out,
Object... otherArgs)
Gets the best
NullaryComputerOp implementation for the given types
and arguments, populating its inputs. |
static <I,O> UnaryComputerOp<I,O> |
unary(OpEnvironment ops,
Class<? extends Op> opType,
Class<O> outType,
Class<I> inType,
Object... otherArgs)
Gets the best
UnaryComputerOp implementation for the given types
and arguments, populating its inputs. |
static <I,O> UnaryComputerOp<I,O> |
unary(OpEnvironment ops,
Class<? extends Op> opType,
Class<O> outType,
I in,
Object... otherArgs)
Gets the best
UnaryComputerOp implementation for the given types
and arguments, populating its inputs. |
static <I,O> UnaryComputerOp<I,O> |
unary(OpEnvironment ops,
Class<? extends Op> opType,
O out,
I in,
Object... otherArgs)
Gets the best
UnaryComputerOp implementation for the given types
and arguments, populating its inputs. |
public static <O> NullaryComputerOp<O> nullary(OpEnvironment ops, Class<? extends Op> opType, Class<O> outType, Object... otherArgs)
NullaryComputerOp
implementation for the given types
and arguments, populating its inputs.ops
- The OpEnvironment
to search for a matching op.opType
- The Class
of the operation. If multiple
NullaryComputerOp
s share this type (e.g., the type is an
interface which multiple NullaryComputerOp
s implement),
then the best NullaryComputerOp
implementation to use will
be selected automatically from the type and arguments.outType
- The Class
of the NullaryComputerOp
typed
output.otherArgs
- The operation's arguments, excluding the typed output
value.NullaryComputerOp
with populated inputs, ready to use.public static <O> NullaryComputerOp<O> nullary(OpEnvironment ops, Class<? extends Op> opType, O out, Object... otherArgs)
NullaryComputerOp
implementation for the given types
and arguments, populating its inputs.ops
- The OpEnvironment
to search for a matching op.opType
- The Class
of the operation. If multiple
NullaryComputerOp
s share this type (e.g., the type is an
interface which multiple NullaryComputerOp
s implement),
then the best NullaryComputerOp
implementation to use will
be selected automatically from the type and arguments.out
- The typed output.otherArgs
- The operation's arguments, excluding the typed output
value.NullaryComputerOp
with populated inputs, ready to use.public static <I,O> UnaryComputerOp<I,O> unary(OpEnvironment ops, Class<? extends Op> opType, Class<O> outType, Class<I> inType, Object... otherArgs)
UnaryComputerOp
implementation for the given types
and arguments, populating its inputs.ops
- The OpEnvironment
to search for a matching op.opType
- The Class
of the operation. If multiple
UnaryComputerOp
s share this type (e.g., the type is an
interface which multiple UnaryComputerOp
s implement), then
the best UnaryComputerOp
implementation to use will be
selected automatically from the type and arguments.outType
- The Class
of the UnaryComputerOp
typed
output.inType
- The Class
of the UnaryComputerOp
typed input.otherArgs
- The operation's arguments, excluding the typed input and
output values.UnaryComputerOp
with populated inputs, ready to use.public static <I,O> UnaryComputerOp<I,O> unary(OpEnvironment ops, Class<? extends Op> opType, Class<O> outType, I in, Object... otherArgs)
UnaryComputerOp
implementation for the given types
and arguments, populating its inputs.ops
- The OpEnvironment
to search for a matching op.opType
- The Class
of the operation. If multiple
UnaryComputerOp
s share this type (e.g., the type is an
interface which multiple UnaryComputerOp
s implement), then
the best UnaryComputerOp
implementation to use will be
selected automatically from the type and arguments.outType
- The Class
of the UnaryComputerOp
typed
output.in
- The typed input.otherArgs
- The operation's arguments, excluding the typed input and
output values.UnaryComputerOp
with populated inputs, ready to use.public static <I,O> UnaryComputerOp<I,O> unary(OpEnvironment ops, Class<? extends Op> opType, O out, I in, Object... otherArgs)
UnaryComputerOp
implementation for the given types
and arguments, populating its inputs.ops
- The OpEnvironment
to search for a matching op.opType
- The Class
of the operation. If multiple
UnaryComputerOp
s share this type (e.g., the type is an
interface which multiple UnaryComputerOp
s implement), then
the best UnaryComputerOp
implementation to use will be
selected automatically from the type and arguments.out
- The typed output.in
- The typed input.otherArgs
- The operation's arguments, excluding the typed input and
output values.UnaryComputerOp
with populated inputs, ready to use.public static <I1,I2,O> BinaryComputerOp<I1,I2,O> binary(OpEnvironment ops, Class<? extends Op> opType, Class<O> outType, Class<I1> in1Type, Class<I2> in2Type, Object... otherArgs)
BinaryComputerOp
implementation for the given types
and arguments, populating its inputs.ops
- The OpEnvironment
to search for a matching op.opType
- The Class
of the operation. If multiple
BinaryComputerOp
s share this type (e.g., the type is an
interface which multiple BinaryComputerOp
s implement),
then the best BinaryComputerOp
implementation to use will
be selected automatically from the type and arguments.outType
- The Class
of the BinaryComputerOp
typed
output.in1Type
- The Class
of the BinaryComputerOp
first
typed input.in2Type
- The Class
of the BinaryComputerOp
second
typed input.otherArgs
- The operation's arguments, excluding the typed inputs and
output values.BinaryComputerOp
with populated inputs, ready to use.public static <I1,I2,O> BinaryComputerOp<I1,I2,O> binary(OpEnvironment ops, Class<? extends Op> opType, Class<O> outType, I1 in1, I2 in2, Object... otherArgs)
BinaryComputerOp
implementation for the given types
and arguments, populating its inputs.ops
- The OpEnvironment
to search for a matching op.opType
- The Class
of the operation. If multiple
BinaryComputerOp
s share this type (e.g., the type is an
interface which multiple BinaryComputerOp
s implement),
then the best BinaryComputerOp
implementation to use will
be selected automatically from the type and arguments.outType
- The Class
of the BinaryComputerOp
typed
output.in1
- The first typed input.in2
- The second typed input.otherArgs
- The operation's arguments, excluding the typed inputs and
output values.BinaryComputerOp
with populated inputs, ready to use.public static <I1,I2,O> BinaryComputerOp<I1,I2,O> binary(OpEnvironment ops, Class<? extends Op> opType, O out, I1 in1, I2 in2, Object... otherArgs)
BinaryComputerOp
implementation for the given types
and arguments, populating its inputs.ops
- The OpEnvironment
to search for a matching op.opType
- The Class
of the operation. If multiple
BinaryComputerOp
s share this type (e.g., the type is an
interface which multiple BinaryComputerOp
s implement),
then the best BinaryComputerOp
implementation to use will
be selected automatically from the type and arguments.out
- The typed output.in1
- The first typed input.in2
- The second typed input.otherArgs
- The operation's arguments, excluding the typed inputs and
output values.BinaryComputerOp
with populated inputs, ready to use.Copyright © 2014–2022 ImageJ. All rights reserved.