@FunctionalInterface
public interface FloatOperator2
Modifier and Type | Field and Description |
---|---|
static FloatOperator2 |
DIV
Float operator which returns the division result of two arguments:
a / b |
static FloatOperator2 |
MINUS
Float operator which returns the difference of two arguments:
a - b |
static FloatOperator2 |
MOD
Float operator which returns the modulo result of two arguments:
a % b . |
static FloatOperator2 |
MULT
Float operator which returns the product of two arguments:
a * b |
static FloatOperator2 |
PLUS
Float operator which returns the sum of two arguments:
a + b . |
Modifier and Type | Method and Description |
---|---|
default FloatOperator2 |
andThen(FloatOperator1 after)
Create a function which applies this function and feeds the result into the next function.
|
float |
applyAsFloat(float arg1,
float arg2)
Apply the function.
|
default FloatOperator1 |
partialLeft(float argument)
Get a partially applied function.
|
default FloatOperator1 |
partialRight(float argument)
Get a partially applied function.
|
static final FloatOperator2 PLUS
a + b
.static final FloatOperator2 MINUS
a - b
static final FloatOperator2 MULT
a * b
static final FloatOperator2 DIV
a / b
static final FloatOperator2 MOD
a % b
.float applyAsFloat(float arg1, float arg2)
arg1
- first argumentarg2
- second argument@NotNull default FloatOperator1 partialLeft(float argument)
argument
- value applied for first argument@NotNull default FloatOperator1 partialRight(float argument)
argument
- value applied for second argument@NotNull default FloatOperator2 andThen(@NotNull FloatOperator1 after)
after
- function called with the result of this function