Exemplo n.º 1
0
 /*
  * (non-Javadoc)
  *
  * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
  */
 public int compare(
     ResolvedConceptReferencesIterator itr1, ResolvedConceptReferencesIterator itr2) {
   try {
     return itr2.numberRemaining() - itr1.numberRemaining();
   } catch (LBResourceUnavailableException e) {
     throw new RuntimeException(e);
   }
 }
Exemplo n.º 2
0
 /*
  * (non-Javadoc)
  *
  * @see
  * org.LexGrid.LexBIG.Utility.Iterators.EntityListIterator#numberRemaining()
  */
 public int numberRemaining() throws LBResourceUnavailableException {
   int number = 0;
   for (ResolvedConceptReferencesIterator itr : _iterators) {
     number += itr.numberRemaining();
   }
   return number;
 }