Class DynamicListCombinationGenerator<T>

java.lang.Object
org.eclipse.epsilon.epl.combinations.DynamicListCombinationGenerator<T>
All Implemented Interfaces:
Iterator<List<T>>, CombinationGenerator<T>

public class DynamicListCombinationGenerator<T> extends Object implements CombinationGenerator<T>
  • Field Details

    • n

      protected int n
    • list

      protected List<T> list
    • listCombinationGenerator

      protected ListCombinationGenerator<T> listCombinationGenerator
    • listeners

      protected ArrayList<CombinationGeneratorListener<T>> listeners
    • producedValidCombination

      protected boolean producedValidCombination
    • state

      protected org.eclipse.epsilon.epl.combinations.DynamicListCombinationGenerator.State state
    • optional

      protected Boolean optional
  • Constructor Details

    • DynamicListCombinationGenerator

      public DynamicListCombinationGenerator(List<T> list, int n)
  • Method Details

    • init

      protected void init(List<T> list, int n)
    • addListener

      public void addListener(CombinationGeneratorListener<T> listener)
    • removeListener

      public void removeListener(CombinationGeneratorListener<T> listener)
    • createCombinationGenerator

      protected void createCombinationGenerator()
    • reset

      public void reset()
      Specified by:
      reset in interface CombinationGenerator<T>
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
    • next

      public List<T> next()
      Specified by:
      next in interface Iterator<T>
    • nudgeList

      protected void nudgeList()
      Nudge the list so that it loads its contents if it's dynamic
    • checkOptional

      protected boolean checkOptional()
    • producedValidCombination

      public void producedValidCombination()
      Specified by:
      producedValidCombination in interface CombinationGenerator<T>
    • isOptional

      public final boolean isOptional()