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