How do you convert this Kotlin predicate to java:
List<SomeObjWithProp> lst = ...
Iterables.filter(lst) { obj -> obj?.property != null }
How do you convert this Kotlin predicate to java:
List<SomeObjWithProp> lst = ...
Iterables.filter(lst) { obj -> obj?.property != null }
Copyright © 2021 Jogjafile Inc.
Java has lambda expressions but not a safe-navigation operator, so you'll need to expand the null check explicitly: