Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.
@FunctionalInterface
public interface IntUnaryOperator
Methods
Method details
applyAsInt
public abstract int applyAsInt(int operand)Applies this operator.
Parameters
operandint- the input
Returns
the result
compose
public default IntUnaryOperator compose(IntUnaryOperator before)before, then this operator on its result.Parameters
beforeIntUnaryOperator- the operator applied first
Returns
the composed operator
andThen
public default IntUnaryOperator andThen(IntUnaryOperator after)This operator, then
after on its result.Parameters
afterIntUnaryOperator- the operator applied next
Returns
the composed operator
identity
public static IntUnaryOperator identity()The operator that answers its operand.
Returns
the identity operator