I have a list of objects A. Each object A in this list contains list of object B and the object B contains list of Object C. The object C contains an attribute name that i w
listOfObjectsA.stream() .flatMap(a -> a.getListOfObjectsB.stream()) .flatMap(b -> b.getListOfObjectsC().stream()) .filter(c -> name.equals(c.getName())) .findAny() .orElse(....)