Interface PointwiseOperation.Any<T>
- All Superinterfaces:
PointwiseOperation<T>
- Enclosing interface:
PointwiseOperation<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface PointwiseOperation.Any<T>
extends PointwiseOperation<T>
A pointwise operation that can be applied to any number of images.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.lukebemish.dynamicassetgenerator.api.colors.operations.PointwiseOperation
PointwiseOperation.Any<T>, PointwiseOperation.Binary<T>, PointwiseOperation.Ternary<T>, PointwiseOperation.Tertiary<T>, PointwiseOperation.Unary<T> -
Method Summary
Modifier and TypeMethodDescriptiondefault PointwiseOperation.Binary<T> binary()default intstatic PointwiseOperation.Any<int[]> identity()default PointwiseOperation.Ternary<T> ternary()default PointwiseOperation.Unary<T> unary()Methods inherited from interface dev.lukebemish.dynamicassetgenerator.api.colors.operations.PointwiseOperation
apply
-
Method Details
-
expectedImages
default int expectedImages()- Specified by:
expectedImagesin interfacePointwiseOperation<T>- Returns:
- how many images this operation expects to be applied to. Should return -1 if the operation can be applied to any number of images
-
unary
- Returns:
- a new
PointwiseOperation.Unaryoperation that applies this operation to the image it is provided
-
binary
- Returns:
- a new
PointwiseOperation.Binaryoperation that applies this operation to the two images it is provided
-
ternary
- Returns:
- a new
PointwiseOperation.Ternaryoperation that applies this operation to the three images it is provided
-
identity
- Returns:
- a new any operation that always returns all values it is provided
-