@FunctionalInterface
public interface IntOperator2
extends java.util.function.IntBinaryOperator
| Modifier and Type | Field and Description |
|---|---|
static IntOperator2 |
DIV
DIVISION (
/) operator. |
static IntOperator2 |
MINUS
MINUS (
-) operator. |
static IntOperator2 |
MOD
MODULO (
%) operator. |
static IntOperator2 |
MULT
MULTIPLICATION (
*) operator. |
static IntOperator2 |
PLUS
PLUS (
+) operator. |
| Modifier and Type | Method and Description |
|---|---|
default IntOperator2 |
andThen(IntOperator1 after)
Create a function which applies this function and feeds the result into the next function.
|
static IntOperator2 |
from(java.util.function.IntBinaryOperator operator)
Make a standard unary int operator usable as
IntOperator2. |
default IntOperator1 |
partialLeft(int argument)
Get a partially applied function.
|
default IntOperator1 |
partialRight(int argument)
Get a partially applied function.
|
static final IntOperator2 PLUS
+) operator.static final IntOperator2 MINUS
-) operator.static final IntOperator2 MULT
*) operator.static final IntOperator2 DIV
/) operator.static final IntOperator2 MOD
%) operator.@NotNull default IntOperator1 partialLeft(int argument)
argument - value applied for first argument@NotNull default IntOperator1 partialRight(int argument)
argument - value applied for second argument@NotNull default IntOperator2 andThen(@NotNull IntOperator1 after)
after - function called with the result of this function@NotNull static IntOperator2 from(@NotNull java.util.function.IntBinaryOperator operator)
IntOperator2.
This is useful if you want to make use of the extended functionality of this implementation.operator - operator to be used as a IntOperator2IntOperator2 view of the incoming operator, or possibly just a cast if
operator already has the correct type