Class Chained<X,​Y,​Z>

  • Type Parameters:
    X - Type of input.
    Y - Intermediate type.
    Z - Type of output.
    All Implemented Interfaces:
    Func<X,​Z>

    public final class Chained<X,​Y,​Z>
    extends Object
    implements Func<X,​Z>
    Composed function.
    Since:
    0.7
    • Constructor Detail

      • Chained

        public Chained​(Func<X,​Y> bfr,
                       Iterable<Func<Y,​Y>> list,
                       Func<Y,​Z> atr)
        Ctor.
        Parameters:
        bfr - Before function
        list - Functions
        atr - After function
      • Chained

        public Chained​(Func<X,​Y> bfr,
                       Func<Y,​Z> atr)
        Ctor.
        Parameters:
        bfr - Before function
        atr - After function
    • Method Detail

      • apply

        public Z apply​(X input)
                throws Exception
        Description copied from interface: Func
        Apply it.
        Specified by:
        apply in interface Func<X,​Y>
        Parameters:
        input - The argument
        Returns:
        The result
        Throws:
        Exception - If fails