I'm using removeIf to remove certain objects from a list if their name or code is null:
tables.removeIf(t -> ((t.getName() == null) || (t.getCode() == null)));
Is there a way I can get the actual items t that have been removed here? Maybe a list of the removed items, or better yet, a stream of the removed items?
Thanks