Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java 8 find in list by property

Optional<Person> matchingObject = objects.stream().
    filter(p -> p.email().equals("testemail")).
    findFirst();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #find #list #property
ADD COMMENT
Topic
Name
3+6 =