You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Constructs a new, empty map, sorted according to the natural ordering of the keys.
3903
+
3904
+
```
3905
+
3906
+
<li><h3> 2.ConcurrentSkipListMap(Comparator<? super K> comparator)</h3></li>
3907
+
3908
+
<ul>
3909
+
3910
+
<li><h3> <ahref="https://github.com/AvinandanBose/JavaUtilMap/blob/main/constructConcurrentSkipListMap1.java">2.a.ConcurrentSkipListMap(Comparator<? super K> comparator)</h3></li>
3911
+
3912
+
```Syntax
3913
+
3914
+
Constructs a new, empty map, sorted according to the specified comparator.
3915
+
3916
+
Note:
3917
+
3918
+
1. ConcurrentSkipListMap<Key, Value> map =
3919
+
new ConcurrentSkipListMap<>((a, b) -> b.compareTo(a))
3920
+
3921
+
2. Comparator<? super Key> comparator = map.comparator();
3922
+
3923
+
ConcurrentSkipListMap<Key, Value> map =
3924
+
new ConcurrentSkipListMap<>(comparator)
3925
+
3926
+
3927
+
```
3928
+
3929
+
<li><h3> <ahref="https://github.com/AvinandanBose/JavaUtilMap/blob/main/constructConcurrentSkipListMap2.java">2.b.ConcurrentSkipListMap(Comparator<? super K> comparator)</h3></li>
3930
+
3931
+
```Syntax
3932
+
3933
+
Constructs a new, empty map, sorted according to the specified comparator.
0 commit comments