List<String> clusterIds = new ArrayList();
clusterIds .add("1");
clusterIds .add("2");
clusterIds .add("3");
List<Integer> intClusterIds = clusterIds.stream().mapToInt(Integer::parseInt).boxed().collect(Collectors.toList());
求和等函数
list.stream().mapToDouble(User::getHeight).sum()//和
list.stream().mapToDouble(User::getHeight).max()//最大
list.stream().mapToDouble(User::getHeight).min()//最小
list.stream().mapToDouble(User::getHeight).average()//平均值