Is either option 1 or option 2 below correct (e.g. one preferred over the other) or are they equivalent?
Option 1
collectionOfThings.
stream().
filter(thing -> thing.condition1() && thing.condition2())
or
Option 2
collectionOfThings
.stream()
.filter(thing -> thing.condition1())
.filter(thing -> thing.condition2())