Show ResultComparator.java syntax highlighted
/*
* Copyright (c) 2005
* Helsinki Institute of Physics
* see LICENSE file for details
*
* ServiceComparator.java
* Created on 27.7.2005
*/
package fi.hip.gb.portlet.results;
import java.util.Comparator;
/**
* Compares results. Used to sort results to the specific order
*
* @author Antti Ahvenlampi
* @version $Id: ResultComparator.java 480 2005-08-15 15:57:49Z ahvenlam $
*/
public class ResultComparator implements Comparator {
/**
* @see java.util.Comparator#compare(T, T)
*/
public int compare(Object o1, Object o2) {
Result r1 = (Result)o1;
Result r2 = (Result)o2;
return r1.getJobID().compareTo(r2.getJobID());
}
}
See more files for this project here