public class CompositeCombinationGenerator<T> extends Object implements CombinationGenerator<List<T>>
Modifier and Type | Field and Description |
---|---|
protected int |
currentGeneratorIndex |
protected Stack<List<T>> |
currentStack |
protected List<CombinationGenerator<T>> |
generators |
protected List<List<T>> |
lookahead |
protected List<List<T>> |
NEXT |
protected List<List<T>> |
UNKNOWN |
protected CompositeCombinationValidator<T,EolRuntimeException> |
validator |
Constructor and Description |
---|
CompositeCombinationGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
addCombinationGenerator(CombinationGenerator<T> g) |
static List<String> |
createList(String... strings) |
protected CombinationGenerator<T> |
getCurrentGenerator() |
protected CombinationGenerator<T> |
getNextGenerator() |
protected List<List<T>> |
getNextImpl() |
protected CombinationGenerator<T> |
getPreviousGenerator() |
CompositeCombinationValidator<T,EolRuntimeException> |
getValidator() |
boolean |
hasNext() |
protected boolean |
isFirstGenerator() |
protected boolean |
isLastGenerator() |
protected boolean |
isValidCombination() |
List<List<T>> |
next() |
void |
producedValidCombination() |
boolean |
removeCombinationGenerator(CombinationGenerator<T> g) |
void |
reset() |
protected void |
setCurrentGenerator(CombinationGenerator<T> g) |
void |
setValidator(CompositeCombinationValidator<T,EolRuntimeException> validator) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, remove
protected List<CombinationGenerator<T>> generators
protected int currentGeneratorIndex
protected CompositeCombinationValidator<T,EolRuntimeException> validator
public CompositeCombinationValidator<T,EolRuntimeException> getValidator()
public void setValidator(CompositeCombinationValidator<T,EolRuntimeException> validator)
public void addCombinationGenerator(CombinationGenerator<T> g)
public boolean removeCombinationGenerator(CombinationGenerator<T> g)
public void reset()
reset
in interface CombinationGenerator<List<T>>
protected boolean isValidCombination()
protected CombinationGenerator<T> getPreviousGenerator()
protected CombinationGenerator<T> getNextGenerator()
protected CombinationGenerator<T> getCurrentGenerator()
protected void setCurrentGenerator(CombinationGenerator<T> g)
protected boolean isFirstGenerator()
protected boolean isLastGenerator()
public void producedValidCombination()
producedValidCombination
in interface CombinationGenerator<List<T>>
Copyright © 2020. All rights reserved.