Interface IntUnaryOperator

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IntUnaryOperator
An operation on one int that answers a int; the int form of UnaryOperator.
  • Method Details

    • applyAsInt

      int applyAsInt(int operand)
      Applies this operator.
      Parameters:
      operand - the input
      Returns:
      the result
    • compose

      default IntUnaryOperator compose(IntUnaryOperator before)
      before, then this operator on its result.
      Parameters:
      before - the operator applied first
      Returns:
      the composed operator
    • andThen

      default IntUnaryOperator andThen(IntUnaryOperator after)
      This operator, then after on its result.
      Parameters:
      after - the operator applied next
      Returns:
      the composed operator
    • identity

      static IntUnaryOperator identity()
      The operator that answers its operand.
      Returns:
      the identity operator