Class NContinuation

java.lang.Object
com.zenith.feature.tasks.NContinuation
All Implemented Interfaces:
Continuation, Closeable, AutoCloseable

@Experimental public class NContinuation extends Object implements Continuation
A Continuation that allows a task to continue executing a specified number of times.
  • Constructor Details

    • NContinuation

      public NContinuation(int n)
    • NContinuation

      public NContinuation(int n, int count)
  • Method Details

    • shouldContinue

      public boolean shouldContinue(boolean taskExecuted)
      Specified by:
      shouldContinue in interface Continuation
    • getN

      public int getN()
    • getCount

      public int getCount()
    • setCount

      public void setCount(int count)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object