Interface Function<T,R>

All Superinterfaces:
Function<T,R>, Throwables.Function<T,R,RuntimeException>
All Known Subinterfaces:
UnaryOperator<T>

public interface Function<T,R> extends Throwables.Function<T,R,RuntimeException>, Function<T,R>
Author:
Haiyang Li
  • Method Details

    • identity

      static <T> Function<T,T> identity()
      Type Parameters:
      T -
      Returns:
    • compose

      default <V> Function<V,R> compose(Function<? super V,? extends T> before)
      Specified by:
      compose in interface Function<T,R>
      Type Parameters:
      V -
      Parameters:
      before -
      Returns:
    • andThen

      default <V> Function<T,V> andThen(Function<? super R,? extends V> after)
      Specified by:
      andThen in interface Function<T,R>
      Type Parameters:
      V -
      Parameters:
      after -
      Returns:
    • toThrowable

      default <E extends Throwable> Throwables.Function<T,R,E> toThrowable()
      Type Parameters:
      E -
      Returns: