Like just about everyone, I\'m still learning the intricacies (and loving them) of the new Java 8 Streams API. I have a question concerning usage of streams. I\'ll provide a
if I understand your question correctly:
set = set.stream().filter(item -> { if (item.qualify()) { ((Qualifier) item).operate(); return false; } return true; }).collect(Collectors.toSet());