Package com.imc.util

Class FluentFunction<A,B>

java.lang.Object
com.imc.util.FluentFunction<A,B>

public abstract class FluentFunction<A,B> extends Object
An extends version of Function which allows chaining.
  • Constructor Details

    • FluentFunction

      public FluentFunction()
  • Method Details

    • from

      public static final <A, B> FluentFunction<A,B> from(<any> f)
      Wraps the given function with a new fluent function or returns the function as is if it is already a fluent function.
    • andThen

      public final <C> FluentFunction<A,C> andThen(<any> f)
      Returns a new FluentFunction which is the composition of this function and the argument given to this method.
      Parameters:
      f - the function which should be called on the result of this function