Skip to content

Commit 22372b3

Browse files
Update README.md
1 parent 89e3364 commit 22372b3

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

README.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3895,5 +3895,70 @@ public interface SortedMap<K, V> extends Map<K, V>
38953895
<h2 align="Center">Constructors of ConcurrentSkipListMap</h2>
38963896
<ul>
38973897

3898+
<li><h3> <a href="https://github.com/AvinandanBose/JavaUtilMap/blob/main/constructConcurrentSkipListMap.java">1.ConcurrentSkipListMap()</h3></li>
3899+
3900+
```Syntax
3901+
3902+
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> <a href="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> <a href="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.
3934+
3935+
:Already Discussed Earlier:
3936+
3937+
3938+
```
3939+
3940+
</ul>
3941+
3942+
<li><h3> <a href="https://github.com/AvinandanBose/JavaUtilMap/blob/main/constructConcurrentSkipListMap3.java">3.ConcurrentSkipListMap​(Map<? extends K,​? extends V> m)</h3></li>
3943+
3944+
```Syntax
3945+
3946+
Constructs a new map containing the same mappings as the given map,
3947+
sorted according to the natural ordering of the keys.​
3948+
3949+
3950+
```
3951+
3952+
<li><h3> <a href="https://github.com/AvinandanBose/JavaUtilMap/blob/main/constructConcurrentSkipListMap4.java">4.ConcurrentSkipListMap​(SortedMap<K,​? extends V> m)</h3></li>
3953+
3954+
```Syntax
3955+
3956+
Constructs a new map containing the same mappings and
3957+
using the same ordering as the specified sorted map.
3958+
3959+
3960+
```
3961+
3962+
38983963
</ul>
38993964
</ul>

0 commit comments

Comments
 (0)