There are a lot of cases where i have to use ! mark in filter method.
E.g. .filter(campaignId -> !lastActualizedDates.getOrDefault(campaignId, LocalDate.MIN).isAfter(period.getTo()))
or write a lot of verbose code to avoid that.
It would be nice to have a method like skipWhen(Predicate) or skipIf(Predicate) or just skip(Predicate) to write more safe and less brain-breaking or verbose code.
There are a lot of cases where i have to use
!
mark in filter method. E.g..filter(campaignId -> !lastActualizedDates.getOrDefault(campaignId, LocalDate.MIN).isAfter(period.getTo()))
or write a lot of verbose code to avoid that.It would be nice to have a method like
skipWhen(Predicate)
orskipIf(Predicate)
or justskip(Predicate)
to write more safe and less brain-breaking or verbose code.