Interface CheckedBiFunction<A,B,T,E extends Throwable>

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 CheckedBiFunction<A,B,T,E extends Throwable>
A binary function that can throw checked exceptions.
  • Method Summary

    Modifier and Type
    Method
    Description
    default <R> CheckedBiFunction<A,B,R,E>
    andThen(CheckedFunction<? super T,? extends R,? extends E> mapper)
    Returns a new CheckedBiFunction that maps the return value using mapper.
    apply(A a, B b)
     
  • Method Details

    • apply

      T apply(A a, B b) throws E
      Throws:
      E
    • andThen

      default <R> CheckedBiFunction<A,B,R,E> andThen(CheckedFunction<? super T,? extends R,? extends E> mapper)
      Returns a new CheckedBiFunction that maps the return value using mapper. For example: ((a, b) -> a + b).andThen(Object::toString).apply(1, 2) => "3".