Class FuncEnvelope<X,​Y>

  • Type Parameters:
    X - Type of input
    Y - Type of output
    All Implemented Interfaces:
    Func<X,​Y>
    Direct Known Subclasses:
    Flattened

    public abstract class FuncEnvelope<X,​Y>
    extends Object
    implements Func<X,​Y>
    Envelope for Func.

    There is no thread-safety guarantee.

    Since:
    0.41
    • Constructor Detail

      • FuncEnvelope

        public FuncEnvelope​(Func<X,​Y> func)
        Ctor.
        Parameters:
        func - The function
    • Method Detail

      • apply

        public final Y 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