I\'ve got a class that implements Iterator with a ResultSet as a data member. Essentially the class looks like this:
public class A implements Iterator{
It can be done like this:
public boolean hasNext() { ... return !entities.isLast(); ... }