Optional<Person> matchingObject = objects.stream(). filter(p -> p.email().equals("testemail")). findFirst();