Class DynamicListCombinationGenerator<T>
java.lang.Object
org.eclipse.epsilon.epl.combinations.DynamicListCombinationGenerator<T>
- All Implemented Interfaces:
Iterator<List<T>>,CombinationGenerator<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ListCombinationGenerator<T>protected ArrayList<CombinationGeneratorListener<T>>protected intprotected Booleanprotected booleanprotected org.eclipse.epsilon.epl.combinations.DynamicListCombinationGenerator.State -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(CombinationGeneratorListener<T> listener) protected booleanprotected voidbooleanhasNext()protected voidfinal booleannext()protected voidNudge the list so that it loads its contents if it's dynamicvoidvoidremoveListener(CombinationGeneratorListener<T> listener) voidreset()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Field Details
-
n
protected int n -
list
-
listCombinationGenerator
-
listeners
-
producedValidCombination
protected boolean producedValidCombination -
state
protected org.eclipse.epsilon.epl.combinations.DynamicListCombinationGenerator.State state -
optional
-
-
Constructor Details
-
DynamicListCombinationGenerator
-
-
Method Details
-
init
-
addListener
-
removeListener
-
createCombinationGenerator
protected void createCombinationGenerator() -
reset
public void reset()- Specified by:
resetin interfaceCombinationGenerator<T>
-
hasNext
public boolean hasNext() -
next
-
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:
producedValidCombinationin interfaceCombinationGenerator<T>
-
isOptional
public final boolean isOptional()
-