. java SDK .
Tangens, TreeMap API:
ConcurrentHashMAp myMap;
new TreeMap(myMap);
“ Please note that this implementation is not synchronized . If several threads access the card at the same time, and at least one of the threads changes the Card structurally, it must be synchronized from the outside”
SortedMap m = Collections.synchronizedSortedMap(new TreeMap(...));
source
share