SolutionType
- solution type of generated solutions, required to extends Solution
public interface SolutionIterator<SolutionType extends Solution>
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Indicates whether there are more solutions to be generated.
|
SolutionType |
next()
Generate the next solution.
|
boolean hasNext()
true
if solutions remain to be generatedSolutionType next()
hasNext()
returns true
,
else it will throw an exception.NoSuchElementException
- if there are no more solutions to be generated (see hasNext()
)Copyright © 2016. All rights reserved.