Class Effect2<A,B>

java.lang.Object
org.opencastproject.util.data.Function2<A,B,Void>
org.opencastproject.util.data.Effect2<A,B>

public abstract class Effect2<A,B> extends Function2<A,B,Void>
Run a side effect.
  • Constructor Details

    • Effect2

      public Effect2()
  • Method Details

    • apply

      public Void apply(A a, B b)
      Description copied from class: Function2
      Apply function to a and b.
      Specified by:
      apply in class Function2<A,B,Void>
    • run

      protected abstract void run(A a, B b)
      Run the side effect.