Java streams are a (limited) version of what you propose.
Something like this is very idiomatic:
myhashmap.entrySet()
.stream()
.map(Map.Entry::getValue)
.sorted()
.distinct()
.toList()