Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // List<String> toRemove = new ArrayList<>();
- // for (String key : frontData) {
- // if (!columns.contains(key)) {
- // toRemove.add(key);
- // }
- // }
- // frontData.removeAll(toRemove);
- frontData.removeAll(frontData.stream().filter(s -> !columns.contains(s)).collect(Collectors.toSet()));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement