Class FuncNoNulls<X,​Y>

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

    public final class FuncNoNulls<X,​Y>
    extends Object
    implements Func<X,​Y>
    Func check for no nulls.
    Since:
    0.10
    • Constructor Detail

      • FuncNoNulls

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

      • apply

        public 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