/** * {@inheritDoc} */ public boolean hasNext() { if (resultSet == null) { readNextValue(); } return (nextValue != null); }
/** * {@inheritDoc} */ public T next() { T result; if (!hasNext()) { throw new NoSuchElementException(); } result = nextValue; readNextValue(); return result; }