|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SolutionIterator
This is an interface that allows a user to search and to iterate through multiple solutions.
The expected use:
SolutionIterator iter = solver.solutionIterator();
while(iter.hasNext()) {
Solution solution = iter.next();
...
}
The method next() should not be called without checking that hasNext() returned true.
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns true if the iteration has more solutions. |
Solution |
next()
Returns the next solution |
| Method Detail |
|---|
boolean hasNext()
Solution next()
java.lang.RuntimeException - "Cannot use SolutionIterator.next() before checking that hasNext() returned true"
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||