package agg.util;
import java.util.Comparator;
public class IntComparator<T> implements Comparator<T> {
public int compare(T o1, T o2) {
Integer int1 = (Integer) o1;
Integer int2 = (Integer) o2;
if (int1.intValue() == int2.intValue())
return 0;
else if (int1.intValue() < int2.intValue())
return -1;
else
return 1;
}
}