/** {@inheritDoc} */ public boolean hasNext() { if (current != null) { return true; } current = getNextMatch(); if (current != null) { return true; } return false; }
/** {@inheritDoc} */ public boolean hasNext() { if (current != null) { return true; } current = getNextMatch(); if (current != null) { return true; } return false; }
/** {@inheritDoc} */ public T next() { T temp; if (current != null) { temp = current; current = null; return temp; } temp = getNextMatch(); if (temp != null) { return temp; } else { throw new NoSuchElementException("No more elements are available"); } }
/** {@inheritDoc} */ public T next() { T temp; if (current != null) { temp = current; current = null; return temp; } temp = getNextMatch(); if (temp != null) { return temp; } else { throw new NoSuchElementException("No more elements are available"); } }