Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
重複の可能性: ConcurrentSkipListMapはいつ使用する必要がありますか?
つまり、JavaライブラリにConcurrentSkipListMapがある場合、ConcurrentHashMapよりも優れている場合があります。ConcurrentSkipListMapはどこで本当に良いのだろうか?
ConcurrentSkipListMapは、SortedMapとNavigableMapをサポートしていました。データを並べ替える必要がある場合は、これを使用します(または、同時実行が必要ない場合はTreeMap)
また、Collections.setFromMap()でラップして、同時SortedSetを作成することもできます。