Interface RecursiveCall<T>

Type Parameters:
T -
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 RecursiveCall<T>
An alternative approach to recursion is using an infinite Stream pipeline with the recursive call wrapped in a functional interface.
  • Method Details

    • apply

      RecursiveCall<T> apply()
    • isComplete

      default boolean isComplete()
    • result

      default T result()
    • run

      default T run()
    • done

      static <T> RecursiveCall<T> done(T value)