Optional<Object> max = collect.stream().max(Comparator.comparing(Object::getDate())); Object object = max.get();