Interface CFunction<T,R>

Type Parameters:
T - argument type
R - result type
All Superinterfaces:
Serializable
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 CFunction<T,R> extends Serializable
Same as java.util.function.Function except it throws CThrowable
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T v)
    Functional interface function
  • Method Details

    • apply

      R apply(T v) throws CThrowable
      Functional interface function
      Parameters:
      v - the function's argument
      Returns:
      the function's result
      Throws:
      CThrowable - if the function is suspended