//list: 去重數組
//TradeCharacterVO: 對象類型
//getCompanyName: 去重字段
ArrayList<TradeCharacterVO> allOfCompanyListCollect = list.stream().collect(Collectors.collectingAndThen(
Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(TradeCharacterVO::getCompanyName))), ArrayList::new));