package inc.sdt.controlcentermanagement.application; import inc.sdt.controlcentermanagement.presentation.StatsDetailRecord; import java.util.Comparator; public class StatsDetailTubeIdComparator implements Comparator { @Override public int compare(StatsDetailRecord o1, StatsDetailRecord o2) { if(Integer.parseInt(o1.getTubeId()) > Integer.parseInt(o2.getTubeId())){ return 1; }else if(Integer.parseInt(o1.getTubeId()) < Integer.parseInt(o2.getTubeId())){ return -1; } return 0; } }