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
Copy file name to clipboardExpand all lines: README.md
+63Lines changed: 63 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4006,3 +4006,66 @@ using the same ordering as the specified sorted map.
4006
4006
</ul>
4007
4007
</ul>
4008
4008
</ul>
4009
+
4010
+
<h1> </h1>
4011
+
<h1> Map.Entry Interface (Sub Interface of Map Interface) and Map.of() </h1>
4012
+
<ul>
4013
+
<h2> </h2>
4014
+
<h2align="Center"> Map.Entry Interface (Sub Interface of Map Interface) </h2>
4015
+
4016
+
<li> <h3>1.A map contains values on the basis of key, i.e. key and value pair.</h3> </li>
4017
+
4018
+
<li> <h3>2.Each key and value pair is known as an Entry.</h3> </li>
4019
+
4020
+
<li> <h3>3.Entry is the subinterface of Map.</h3> </li>
4021
+
4022
+
<li> <h3>4.So we can access it by Map.Entry name.</h3> </li>
4023
+
4024
+
<li> <h3>5.Map.Entry interface in Java provides certain methods to access the entry in the Map.</h3> </li>
4025
+
4026
+
<li> <h3>6.Map.Entry helps us to gain access to the entries of the Map.</h3> </li>
4027
+
4028
+
<li> <h3>7.By gaining access to the entry of the Map we can easily manipulate them.</h3> </li>
4029
+
4030
+
<li> <h3>8.Map.Entry is a generic and is defined in the java.util package.</h3> </li>
4031
+
4032
+
<h3align="Center">
4033
+
4034
+
```Syntax
4035
+
4036
+
public static interface Map.Entry<K,V>
4037
+
4038
+
```
4039
+
4040
+
</h3>
4041
+
4042
+
<h2></h2>
4043
+
<h2align="Center"> Implementation of Map.Entry </h2>
4044
+
4045
+
<ul>
4046
+
<li><h3> <ahref="https://github.com/AvinandanBose/JavaUtilMap/blob/main/MapEntry_HashMap.java">1.Implementation of Map.Entry in HashMap</h3></li>
4047
+
<li><h3> <ahref="https://github.com/AvinandanBose/JavaUtilMap/blob/main/MapEntry_LinkedHashMap.java">2.Implementation of Map.Entry in LinkedHashMap</h3></li>
4048
+
<li><h3> <ahref="https://github.com/AvinandanBose/JavaUtilMap/blob/main/MapEntry_WeakHashMap.java">3.Implementation of Map.Entry in WeakHashMap</h3></li>
4049
+
<li><h3> <ahref="https://github.com/AvinandanBose/JavaUtilMap/blob/main/MapEntry_TreeMap.java">4.Implementation of Map.Entry in TreeMap</h3></li>
4050
+
<li><h3> <ahref="https://github.com/AvinandanBose/JavaUtilMap/blob/main/MapEntry_ConcurrentHashMap.java">4.Implementation of Map.Entry in ConcurrentHashMap</h3></li>
4051
+
<li><h3> <ahref="https://github.com/AvinandanBose/JavaUtilMap/blob/main/MapEntry_ConcurrentSkipListMap.java">5.Implementation of Map.Entry in ConcurrentSkipListMap</h3></li>
4052
+
</ul>
4053
+
4054
+
<h2> </h2>
4055
+
<h2align="Center"> Map.of(K,V) and Map.ofEntries(Map.entry(K,V)) </h2>
4056
+
4057
+
<li> <h3>1.The Map.of and Map.ofEntries are static factory methods that return unmodifiable Map containing specified mapping.</h3> </li>
4058
+
4059
+
<li> <h3>2.They are introduced in Java 9.</h3> </li>
4060
+
4061
+
<h2></h2>
4062
+
<h2align="Center"> Implementation of Map.Entry </h2>
4063
+
4064
+
<ul>
4065
+
4066
+
<li><h3> <ahref="https://github.com/AvinandanBose/JavaUtilMap/blob/main/MapOf.java">1.Implementation of MapOf functionality</h3></li>
4067
+
<li><h3> <ahref="https://github.com/AvinandanBose/JavaUtilMap/blob/main/MapOfEntries.java">2.Implementation of MapOfEntries functionality</h3></li>
0 commit comments