/** The next acceptable object in the iterator. * @return The next acceptable object. */ @Override synchronized public X next() { if (hasNext()) { X r = current; current = null; return r; } throw new NoSuchElementException(); } }
/** The next acceptable object in the iterator. * @return The next acceptable object. */ @Override synchronized public X next() { if (hasNext()) { X r = current; current = null; return r; } throw new NoSuchElementException(); } }