摘要: 在业务中,构建了一个list数组,需要对里面的对象,进行id倒序排序, 方法如下: 在bean中,实现comparable的接口, public class Description implements Comparable<Description> 并实现其重载的方法,谁在前谁在后,代表正序和倒序 阅读全文
posted @ 2020-03-27 21:20 琴声清幽 阅读(431) 评论(0) 推荐(0) 编辑