How to initialize a generic class that implements Comparable
The essence is quite simple:
I have a container class that contains a Map with elements that implement the Compable interface.
At the same time, the container class itself also implements the Compable interface. It looks like this: