Suppose I have an ArrayList of my custom Objects which is very simple. For example:
ArrayList
class Account { public String Name; public In
Simple Solution:
Account account = accountList.stream().filter(a -> a.getId() == YOUR_ID).collect(Collectors.toList()).get(0);