//companys 是一个List对象集合
Collections.sort(companys, new Comparator() {
			public int compare(Object a, Object b) {
				Long one = ((UserCompany) a).getCompany().getComid();
				Long two = ((UserCompany) b).getCompany().getComid();
				return (int) (one - two);
			}
		});

  

相关文章:

  • 2022-12-23
  • 2022-01-28
  • 2022-01-09
  • 2021-11-27
猜你喜欢
  • 2021-12-12
  • 2021-12-24
  • 2022-02-01
  • 2022-01-02
  • 2022-12-23
  • 2021-07-01
相关资源
相似解决方案