OK I admit, I have not consulted the docs (I am using maven).
It works as described, thank you.
Why do you use a naming convention? In my application I have a
ListHandler which creates already sorted lists. With your construct I
either have to get a reference to the basic = unsorted list as well as
the sorted one or I have only a reference to the unsorted list and a
second sorted one will be created. At least I did not manage to make
the program work with only the sorted list.
For me it would be clearer just to check if the list is an instance of
a sorted list. In the Java program the creation of a sorted list is
just one statement but it gives more flexibility. And the naming
convention can lead to awkward names: for the unsorted list I use
entityList and for the sorted one entityListSortedList.
But again, thank you for your quick reply. And your solution works.
Martin