java 8 : how to find a matching object based on property and set it to the streaming list object code example
Example: java find item in list by property
Customer james = customers.stream()
.filter(customer -> "James".equals(customer.getName()))
.findAny()
.orElse(null);