/** * Gets the next from list. * * @return the next from list */ private ResolvedConceptReference getNextFromList() { try { while (hasNext()) { int iterator = _currentIterator % _iterators.size(); ResolvedConceptReferencesIterator itr = _iterators.get(iterator); if (itr.hasNext()) { _currentIterator++; return itr.next(); } else { _currentIterator++; } } return null; } catch (Exception e) { throw new RuntimeException(e); } }
/* * (non-Javadoc) * * @see org.LexGrid.LexBIG.Utility.Iterators.EntityListIterator#hasNext() */ public boolean hasNext() throws LBResourceUnavailableException { removeEmptyIterators(); return _iterators.size() > 0; }