- Direct Known Subclasses:
Effect0.X
Run a side effect.
- See Also:
-
-
Nested Class Summary
Nested Classes
static class
Version of
Effect0 that allows for throwing a checked exception.
-
Constructor Summary
Constructors
-
Method Summary
Apply function yielding a constant value.
protected abstract void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Details
-
apply
public final Void apply()
Apply function yielding a constant value. Don't be tempted to become impure!
- Specified by:
apply in class Function0<Void>
-
run
protected abstract void run()
Run the side effect.