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 int
protected Boolean
protected boolean
protected org.eclipse.epsilon.epl.combinations.DynamicListCombinationGenerator.State
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(CombinationGeneratorListener<T> listener) protected boolean
protected void
boolean
hasNext()
protected void
final boolean
next()
protected void
Nudge the list so that it loads its contents if it's dynamicvoid
void
removeListener
(CombinationGeneratorListener<T> listener) void
reset()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
reset
in 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:
producedValidCombination
in interfaceCombinationGenerator<T>
-
isOptional
public final boolean isOptional()
-