Interface AsyncFunction<T,R>

All Superinterfaces:
AsyncFunctionEx<T,R>
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 AsyncFunction<T,R> extends AsyncFunctionEx<T,R>
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T t)
     
    static <T, R> AsyncFunction<T,R>
    of(io.activej.common.function.FunctionEx<? super T,? extends R> function)
    Wraps a FunctionEx interface.
    static <T, R> AsyncFunction<T,R>
    sanitize(AsyncFunctionEx<? super T,R> function)
     
  • Method Details

    • apply

      Promise<R> apply(T t)
      Specified by:
      apply in interface AsyncFunctionEx<T,R>
    • of

      static <T, R> AsyncFunction<T,R> of(io.activej.common.function.FunctionEx<? super T,? extends R> function)
      Wraps a FunctionEx interface.
      Parameters:
      function - a FunctionEx
      Returns:
      AsyncFunction that works on top of FunctionEx interface
    • sanitize

      static <T, R> AsyncFunction<T,R> sanitize(AsyncFunctionEx<? super T,R> function)