2020
10-10
10-10
java Collections 排序--多条件排序实例
我就废话不多说了,大家还是直接看代码吧~//告警排序Collections.sort(domesticAirport,comparator);//告警排序Comparator<AirportRtWeatherWarningBeanForTable>comparator=newComparator<AirportRtWeatherWarningBeanForTable>(){@Overridepublicintcompare(AirportRtWeatherWarningBeanForTablea1,AirportRtWeatherWarningBeanForTablea2){//首先根据是否过期排序if(a1.isMetarExpired()&&!a2.isM...
继续阅读 >