}else
{
Set<Completion> completions = requests.get(rowIndex).getCompletions();
Iterator<Completion> iter = completions.iterator();
Date newestDate = null;
Completion latestCompletion = null;
while (iter.hasNext())
{
Completion curComp = iter.next();
Date curDate = iter.next().getDateCompleted();
if (newestDate == null || curDate.after(newestDate))
{
newestDate = curDate;
latestCompletion = curComp;
}
}
if (latestCompletion != null)
{
return latestCompletion.getToSource();
} else
{
return "N/A";
}
}
case 5:
if (requests.get(rowIndex).getCompletions().isEmpty())
{
return "N/A";
}else
{
Set<Completion> completions = requests.get(rowIndex).getCompletions();
Iterator<Completion> iter = completions.iterator();
Date newestDate = null;
Completion latestCompletion = null;
while (iter.hasNext())
{
Completion curComp = iter.next();
Date curDate = iter.next().getDateCompleted();
if (newestDate == null || curDate.after(newestDate))
{
newestDate = curDate;
latestCompletion = curComp;