Package fj.data

Interface IO<A>

  • Type Parameters:
    A - the type of the result produced by the IO
    All Superinterfaces:
    Try0<A,​java.io.IOException>
    All Known Subinterfaces:
    SafeIO<A>
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface IO<A>
    extends Try0<A,​java.io.IOException>
    IO monad for processing files
    • Method Detail

      • run

        A run()
        throws java.io.IOException
        Throws:
        java.io.IOException
      • f

        default A f()
             throws java.io.IOException
        Specified by:
        f in interface Try0<A,​java.io.IOException>
        Throws:
        java.io.IOException
      • map

        default <B> IO<B> map​(F<A,​B> f)
      • bind

        default <B> IO<B> bind​(F<A,​IO<B>> f)
      • append

        default <B> IO<B> append​(IO<B> iob)