Class BuildConfiguration.LifecycleIterator

  • All Implemented Interfaces:
    java.util.Iterator<com.ibm.dbb.task.configuration.LifecycleStep>
    Enclosing class:
    BuildConfiguration

    public class BuildConfiguration.LifecycleIterator
    extends java.lang.Object
    implements java.util.Iterator<com.ibm.dbb.task.configuration.LifecycleStep>
    An iterator class that returns either individual tasks, or stages wrapped in a LifecycleStep object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getLifecycle()
      Returns the lifecycle thats being iterated over.
      boolean hasNext()
      Returns whether or not there is another item in the queue.
      com.ibm.dbb.task.configuration.LifecycleStep next()
      Moves to the next item and provides its LifecycleStep object.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, remove
    • Method Detail

      • getLifecycle

        public java.lang.String getLifecycle()
        Returns the lifecycle thats being iterated over.
        Returns:
        String lifecycle
      • hasNext

        public boolean hasNext()
        Returns whether or not there is another item in the queue.
        Specified by:
        hasNext in interface java.util.Iterator<com.ibm.dbb.task.configuration.LifecycleStep>
        Returns:
        boolean, true if there is at least one item left.
      • next

        public com.ibm.dbb.task.configuration.LifecycleStep next()
        Moves to the next item and provides its LifecycleStep object.
        Specified by:
        next in interface java.util.Iterator<com.ibm.dbb.task.configuration.LifecycleStep>
        Returns:
        LifecycleStep, the variables object associated with a task.
        Throws:
        java.lang.RuntimeException - when a task reference can't be matched to a task.