Map<String, List<Rank>> dayWeekRankMap = new LinkedHashMap<>();
if(oridayWeekList != null && !oridayWeekList.isEmpty()){
for (Rank rank : oridayWeekList) {List<Rank> tempList = dayWeekRankMap.get(DateUtils.format(timeDayWeek, "yyyy-MM-dd"));
if(tempList == null){
tempList = new ArrayList<>();
tempList.add(rank);
dayWeekRankMap.put(DateUtils.format(timeDayWeek, "yyyy-MM-dd"), tempList);
}else{
tempList.add(rank);
}
}
}
dayWeekRankMap