使用lambda中的流并根据对象类型中的typeId对list进行去重
set集合中的元素不可重复
allDevTypes.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(IOTVirDevType::getTypeId))), ArrayList::new));
IOTVirDevType
private String typeId; // 类型id
private String typeName; // 类型名称
private String model;