@FunctionalInterface
public interface ShortOperator2
| Modifier and Type | Field and Description |
|---|---|
static ShortOperator2 |
DIV
DIVISION (
/) operator. |
static ShortOperator2 |
MINUS
MINUS (
-) operator. |
static ShortOperator2 |
MOD
MODULO (
%) operator. |
static ShortOperator2 |
MULT
MULTIPLICATION (
*) operator. |
static ShortOperator2 |
PLUS
PLUS (
+) operator. |
| Modifier and Type | Method and Description |
|---|---|
default ShortOperator2 |
andThen(ShortOperator1 after)
Create a function which applies this function and feeds the result into the next function.
|
short |
applyAsShort(short arg1,
short arg2)
Apply the function.
|
default ShortOperator1 |
partialLeft(short argument)
Get a partially applied function.
|
default ShortOperator1 |
partialRight(short argument)
Get a partially applied function.
|
static final ShortOperator2 PLUS
+) operator.
In difference to the standard PLUS this operator returns a short result.static final ShortOperator2 MINUS
-) operator.
In difference to the standard MINUS this operator returns a short result.static final ShortOperator2 MULT
*) operator.
In difference to the standard MULTIPLICATION this operator returns a short result.static final ShortOperator2 DIV
/) operator.
In difference to the standard DIVISION this operator returns a short result.static final ShortOperator2 MOD
%) operator.
In difference to the standard MOULO this operator returns a short result.short applyAsShort(short arg1,
short arg2)
arg1 - first argumentarg2 - second argument@NotNull default ShortOperator1 partialLeft(short argument)
argument - value applied for first argument@NotNull default ShortOperator1 partialRight(short argument)
argument - value applied for second argument@NotNull default ShortOperator2 andThen(@NotNull ShortOperator1 after)
after - function called with the result of this function