根据嵌套列表对象属性对列表进行排序

时间:2019-07-19 07:39:57

标签: java

需要根据一些var relativePath = Path.Combine(".","TestDir",fileName); using (var sr = new StreamReader(relativePath)) { //... } List<Object>进行排序

我的DTO以下

nested List<Object> property

需要根据public class WalletDetailsDTO { private List<CreditDetailDTO> creditDetails; } public class CreditDetailDTO { private String sectionType; private BigDecimal totalAmount; private List<SectionDetailsDTO> sectionDetails; } public class SectionDetailsDTO { private String startDate; private String expiryDate; private BigDecimal amount; } List<CreditDetailDTO> creditDetails属性对List<SectionDetailsDTO> sectionDetails进行排序。

0 个答案:

没有答案