javax.constraints.impl.search
Class BasicSolutionIterator

java.lang.Object
  extended by javax.constraints.impl.search.BasicSolutionIterator
All Implemented Interfaces:
SolutionIterator

public class BasicSolutionIterator
extends java.lang.Object
implements SolutionIterator


Constructor Summary
BasicSolutionIterator(AbstractSolver solver)
           
 
Method Summary
 boolean hasNext()
          Returns true if the iteration has more solutions.
 Solution next()
          Returns the next solution
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicSolutionIterator

public BasicSolutionIterator(AbstractSolver solver)
Method Detail

hasNext

public boolean hasNext()
Description copied from interface: SolutionIterator
Returns true if the iteration has more solutions. In other words, returns true if next would return an element rather than throwing an exception.

Specified by:
hasNext in interface SolutionIterator
Returns:
true if the iteration has more solutions

next

public Solution next()
Description copied from interface: SolutionIterator
Returns the next solution

Specified by:
next in interface SolutionIterator
Returns:
the next solution