org.apache.commons.lang3.function

## Interface FailableLongUnaryOperator<E extends Throwable>

- Type Parameters:
    `E` - The kind of thrown exception or error.

      public interface FailableLongUnaryOperator<E extends Throwable>

  A functional interface like `LongUnaryOperator` that declares a `Throwable`.
  Since:
    3.11

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static FailableLongUnaryOperator` | `NOP` NOP singleton

  - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `default FailableLongUnaryOperator<E>` | `andThen(FailableLongUnaryOperator<E> after)` Returns a composed `FailableDoubleUnaryOperator` like `LongUnaryOperator.andThen(LongUnaryOperator)`.
    `long` | `applyAsLong(long operand)` Applies this operator to the given operand.
    `default FailableLongUnaryOperator<E>` | `compose(FailableLongUnaryOperator<E> before)` Returns a composed `FailableLongUnaryOperator` like `LongUnaryOperator.compose(LongUnaryOperator)`.
    `static <E extends Throwable> FailableLongUnaryOperator<E>` | `identity()` Returns a unary operator that always returns its input argument.
    `static <E extends Throwable> FailableLongUnaryOperator<E>` | `nop()` Returns The NOP singleton.

- - ### Field Detail

    - #### NOP

          static final FailableLongUnaryOperator NOP

      NOP singleton

  - ### Method Detail

    - #### identity

          static <E extends Throwable> FailableLongUnaryOperator<E> identity()

      Returns a unary operator that always returns its input argument.
      Type Parameters:
        `E` - The kind of thrown exception or error.
      Returns:
        a unary operator that always returns its input argument

    - #### nop

          static <E extends Throwable> FailableLongUnaryOperator<E> nop()

      Returns The NOP singleton.
      Type Parameters:
        `E` - The kind of thrown exception or error.
      Returns:
        The NOP singleton.

    - #### andThen

          default FailableLongUnaryOperator<E> andThen(FailableLongUnaryOperator<E> after)

      Returns a composed `FailableDoubleUnaryOperator` like `LongUnaryOperator.andThen(LongUnaryOperator)`.
      Parameters:
        `after` - the operator to apply after this one.
      Returns:
        a composed `FailableLongUnaryOperator` like `LongUnaryOperator.andThen(LongUnaryOperator)`.
      Throws:
        `NullPointerException` - if after is null.
      See Also:
        `compose(FailableLongUnaryOperator)`

    - #### applyAsLong

          long applyAsLong(long operand)
                    throws E extends Throwable

      Applies this operator to the given operand.
      Parameters:
        `operand` - the operand
      Returns:
        the operator result
      Throws:
        `E` - Thrown when a consumer fails.
        `E extends Throwable`

    - #### compose

          default FailableLongUnaryOperator<E> compose(FailableLongUnaryOperator<E> before)

      Returns a composed `FailableLongUnaryOperator` like `LongUnaryOperator.compose(LongUnaryOperator)`.
      Parameters:
        `before` - the operator to apply before this one.
      Returns:
        a composed `FailableLongUnaryOperator` like `LongUnaryOperator.compose(LongUnaryOperator)`.
      Throws:
        `NullPointerException` - if before is null.
      See Also:
        `andThen(FailableLongUnaryOperator)`

Copyright © 2001–2023 The Apache Software Foundation. All rights reserved.