Interface ExceptionObjLongFunction<T,R,E extends Exception>

Type Parameters:
T - the first argument type
R - the result type
E - the exception type

public interface ExceptionObjLongFunction<T,R,E extends Exception>
A function which operates on an object and a long integer, yielding an object.
  • Method Summary

    Modifier and Type
    Method
    Description
    default <V> ExceptionObjLongFunction<T,V,E>
    andThen(ExceptionFunction<? super R,? extends V,? extends E> after)
    Returns a function that applies the given function to the result of this function.
    apply(T arg1, long arg2)
    Applies this function to the given arguments.
  • Method Details

    • apply

      R apply(T arg1, long arg2) throws E
      Applies this function to the given arguments.
      Parameters:
      arg1 - the first argument
      arg2 - the second argument
      Returns:
      the function result
      Throws:
      E - if an exception occurs
    • andThen

      default <V> ExceptionObjLongFunction<T,V,E> andThen(ExceptionFunction<? super R,? extends V,? extends E> after)
      Returns a function that applies the given function to the result of this function.
      Type Parameters:
      V - the final return type
      Parameters:
      after - the next function (must not be null)
      Returns:
      a function that applies the given function to the result of this function