Ejemplo n.º 1
0
 /**
  * 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);
   }
 }
Ejemplo n.º 2
0
 /*
  * (non-Javadoc)
  *
  * @see org.LexGrid.LexBIG.Utility.Iterators.EntityListIterator#hasNext()
  */
 public boolean hasNext() throws LBResourceUnavailableException {
   removeEmptyIterators();
   return _iterators.size() > 0;
 }