I know how to get the min LocalDateTime of a list thanks to: https://stackoverflow.com/a/20996009/270143
e.g. LocalDateTime minLdt = list.stream().map(u -> u.getMyLocalDateTime()).min(LocalDateTime::compareTo).get();
My problem is slightly different though...
- I would like the min
LocalDateTimethat is notnull - or
nullif they are allnull
How would I go about doing that in a concise way?