Class Effect0

java.lang.Object
org.opencastproject.util.data.Function0<Void>
org.opencastproject.util.data.Effect0
Direct Known Subclasses:
Effect0.X

public abstract class Effect0 extends Function0<Void>
Run a side effect.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Version of Effect0 that allows for throwing a checked exception.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final Void
    Apply function yielding a constant value.
    protected abstract void
    run()
    Run the side effect.

    Methods inherited from class org.opencastproject.util.data.Function0

    then, then

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Effect0

      public Effect0()
  • Method Details

    • apply

      public final Void apply()
      Description copied from class: Function0
      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.