본문 바로가기

Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Archives
Total
Today
Yesterday
관리 메뉴

VO 안에 들어 있는 숫자값을 정렬 할때 본문

카테고리 없음

VO 안에 들어 있는 숫자값을 정렬 할때

잠이올때마다 2019. 4. 12. 15:35

teamCompare.sort(Collections.reverseOrder(new Comparator() {
@Override
public int compare(RedmineTeamCompareVO id1, RedmineTeamCompareVO id2) {

int id_1 = id1.getDbid();
int id_2 = id2.getDbid();
if (id_1 == id_2)
return 0;
else if (id_1 > id_2)
return 1;
else
return -1;
}
}));

Comments