java8 流操作中distinc无法根据对象的某一个属性名来去重,该方法是对distinc的不完善的补充,使用filter来完成,内存上要多消耗一个hashMap public static Predicate distinctByKey(Function keyExtractor) { Ma
public staticPredicate distinctByKey(Function keyExtractor) { Map
public staticPredicate distinctByKey(Function keyExtractor) { Map