So currently I am trying to wrap my head around java 8.
I have this stream manipulation
List<MyObject> parsedEvents = events.stream()
.filter(Objects::nonNull)
.map(
e -> MyObject.builder()
.setFoo(e.foo())
.setBar(e.bar())
.setBaz(e.baz())
.build()
).collect(Collectors.toList());
But, sometimes e.foo() can be Null or e.bar() can be null or e.baz() can be null.
So, I want to just filter those events where any of those methods will return a null.
What's a clean way to do that in java 8.