Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MyClass interestingObjectOrNull = FluentIterable.from(myList)
- .firstMatch(new Predicate<MyClass>() {
- @Override
- public boolean apply(MyClass element) {
- return element.getId == 125L
- }
- })
- .orNull();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement