Interface Effect

  • All Superinterfaces:
    java.io.Serializable

    public interface Effect
    extends java.io.Serializable
    An executable piece of code that takes no parameters and doesn't return any value. Serializable is needed to be able to grab line number for Java 8 lambdas. Supports throwing Exception in the apply, which the java.util.function.Effect counterpart does not.
    • Method Detail

      • apply

        void apply()
            throws java.lang.Exception
        Throws:
        java.lang.Exception