@FunctionalInterface
public interface IntOperator1
extends java.util.function.IntUnaryOperator
Modifier and Type | Field and Description |
---|---|
static IntOperator1 |
BIT_FLIP
Integer operator BIT FLIP (
~ ). |
static IntOperator1 |
NEGATE
Integer operator NEGATE.
|
Modifier and Type | Method and Description |
---|---|
default IntOperator1 |
andThen(IntOperator1 after)
Create a function which applies this function and feeds the result into the next function.
|
static IntOperator1 |
from(java.util.function.IntUnaryOperator operator)
Make a standard unary int operator usable as
IntOperator1 . |
default IntOperator0 |
partial(int argument)
Create a zero argument function from this one by applying a constant argument.
|
static final IntOperator1 NEGATE
0
also Integer.MIN_VALUE
is its own negative.static final IntOperator1 BIT_FLIP
~
).@NotNull default IntOperator0 partial(int argument)
argument
- constant argument@NotNull default IntOperator1 andThen(@NotNull IntOperator1 after)
after
- function called with the result of this function@NotNull static IntOperator1 from(@NotNull java.util.function.IntUnaryOperator operator)
IntOperator1
.
This is useful if you want to make use of the extended functionality of this implementation.operator
- operator to be used as a IntOperator1
IntOperator1
view of the incoming operator, or possibly just a cast if
operator
already has the correct type