Class UncheckedProc<X>

  • Type Parameters:
    X - Type of input
    All Implemented Interfaces:
    Proc<X>

    public final class UncheckedProc<X>
    extends Object
    implements Proc<X>
    Proc that doesn't throw checked Exception.

    There is no thread-safety guarantee.

    Since:
    0.2
    • Constructor Detail

      • UncheckedProc

        public UncheckedProc​(Proc<X> prc)
        Ctor.
        Parameters:
        prc - Encapsulated func
    • Method Detail

      • exec

        public void exec​(X input)
        Description copied from interface: Proc
        Execute it.
        Specified by:
        exec in interface Proc<X>
        Parameters:
        input - The argument