Interface LoopBody


  • public interface LoopBody
    The implementation of this interface contains the code inside a for-loop construct.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void run​(int i)
      This method contains the code inside the for-loop, as in a native for-loop like this:
    • Method Detail

      • run

        void run​(int i)
          throws Exception
        This method contains the code inside the for-loop, as in a native for-loop like this:
        
         for (int i = start; i < end; i += increment) {
             // loop body
         }
         
        Parameters:
        i - the current loop count
        Throws:
        Exception - any exception thrown during execution