Interface LongUnaryOperator

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 LongUnaryOperator
An operation on one long that answers a long; the long form of UnaryOperator.
  • Method Details

    • applyAsLong

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

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

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

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