Class DynamicListCombinationGenerator<T>

  • All Implemented Interfaces:
    java.util.Iterator<java.util.List<T>>, CombinationGenerator<T>

    public class DynamicListCombinationGenerator<T>
    extends java.lang.Object
    implements CombinationGenerator<T>
    • Field Detail

      • n

        protected int n
      • list

        protected java.util.List<T> list
      • producedValidCombination

        protected boolean producedValidCombination
      • state

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

        protected java.lang.Boolean optional
    • Constructor Detail

      • DynamicListCombinationGenerator

        public DynamicListCombinationGenerator​(java.util.List<T> list,
                                               int n)
    • Method Detail

      • init

        protected void init​(java.util.List<T> list,
                            int n)
      • createCombinationGenerator

        protected void createCombinationGenerator()
      • hasNext

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

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

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

        protected boolean checkOptional()
      • isOptional

        public final boolean isOptional()