public class StdResponse extends CommonResponse{
private int claimsMatched;
private String employeeId;
private List<StdDetails> stdDetails;
}
public class StdDetails {
private String claimId;
private String type;
private String startDate;
private String endDate;
private String reportedDate;
private String hrStatus;
}
我有一个stdresponse对象“response”。现在我想用startdate对这个响应对象进行排序,startdate是stddetails列表中的一个。我想用比较器。。。。
Comparator<StdResponse> cmp = new Comparator<StdResponse>() {
public int compare(List<StdResponse> o1, <StdResponse> o2) {
return o1.getStdDetails().
无法获取startdate的值。请帮忙,谢谢
暂无答案!
目前还没有任何答案,快来回答吧!