I am just asking myself if there is a more convenient way to create a SortedSet, e.g. a TreeSet in Java than the one-liner I am currently using in tests:
new TreeSet<>(Set.of(element1, element2));
Something like SortedSet.of(...) maybe from Apache Commons or the like?
new TreeSet<>(Set.of(element1, element2));
Something like SortedSet.of(...) maybe from Apache Commons or the like?