I'm trying to find a pre-built implementation of a MultiValuedTreeMap. In a nutshell, I need a single key to map to multiple values via the use of a List. I then need each key to be stored in a sorted structure, what I imagine should be a tree map - hence the name.
The closest I have found is a ArrayListValuedHashMap: https://commons.apache.org/proper/commons-collections/javadocs/api-4.4/index.html
I see no version which uses a TreeMap instead of a HashMap, however.
I am new to the Apache Commons libraries so forgive me if the question is obvious / already solved.
I am also aware I can implement this relatively easily myself, but I don't want to reinvent the wheel if it already exists.