Advertisement
deflorator1980

Untitled

Feb 2nd, 2017
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1. //            List<String> toRemove = new ArrayList<>();
  2. //            for (String key : frontData) {
  3. //                if (!columns.contains(key)) {
  4. //                    toRemove.add(key);
  5. //                }
  6. //            }
  7. //            frontData.removeAll(toRemove);
  8.  
  9.             frontData.removeAll(frontData.stream().filter(s -> !columns.contains(s)).collect(Collectors.toSet()));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement