Skip to content

Commit b259a47

Browse files
Update README.md
1 parent 1a95b8d commit b259a47

File tree

1 file changed

+53
-1
lines changed

1 file changed

+53
-1
lines changed

README.md

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ sequenceDiagram
10481048
<th >Methods</th>
10491049
</tr>
10501050
<tr>
1051-
<td colspan="4" rowspan="10" >AbstractCollection</td>
1051+
<td colspan="4" rowspan="11" >AbstractCollection</td>
10521052
<td >Add</td>
10531053

10541054
</tr>
@@ -1079,13 +1079,56 @@ sequenceDiagram
10791079
<tr>
10801080
<td >toArray</td>
10811081
</tr>
1082+
<tr>
1083+
<td >toString</td>
1084+
</tr>
10821085
</table>
10831086

10841087
</ul>
10851088
<h1 align="center"> About AbstractSet </h1>
10861089

1090+
<h3>AbstractSet is an Abstract class in Java is a part of the Java Collection Framework which implements the Collection interface and extends the AbstractCollection class. It provides a skeletal implementation of the Set interface. </h3>
1091+
1092+
```Syntax
1093+
1094+
abstract class AbstractSet<E> extends AbstractCollection<E> implements Set<E>
1095+
1096+
```
1097+
<h3>Where E is the type of elements. </h3>
1098+
1099+
1100+
<table>
1101+
<tr>
1102+
<th colspan="4">Abstract Class</th>
1103+
<th >Method/s</th>
1104+
</tr>
1105+
<tr>
1106+
<td colspan="4" rowspan="10" >AbstractSet</td>
1107+
<td >removeAll</td>
1108+
1109+
</tr>
1110+
<tr>
1111+
1112+
<td >equals</td>
1113+
1114+
</tr>
1115+
<tr>
1116+
1117+
<td >hashCode</td>
1118+
1119+
</tr>
1120+
</table>
1121+
10871122
<ul>
10881123

1124+
<ul>
1125+
<ul>
1126+
<li><h3><a href= "https://github.com/AvinandanBose/JavaCollectionFramework/blob/main/AbstractSetDemo1.java" >AbstractSet[Example]</a></h3></li>
1127+
</ul>
1128+
</ul>
1129+
1130+
<br>
1131+
10891132
```mermaid
10901133
10911134
graph TD;
@@ -1095,10 +1138,19 @@ sequenceDiagram
10951138
AbstractCollection-->|extends| AbstractSet;
10961139
AbstractSet-->|extends| CopyOnWriteArraySet;
10971140
AbstractSet-->|extends| HashSet;
1141+
HashSet-->|extends| LinkedHashSet;
10981142
AbstractSet-->|extends| TreeSet;
10991143
AbstractSet-->|extends| EnumSet;
11001144
11011145
```
1146+
1147+
<h3>Hence we get two more types : </h3>
1148+
<ul>
1149+
<li><h3> 1. EnumSet </h3> </li>
1150+
<li><h3> 2. CopyOnWriteArraySet </h3> </li>
1151+
</ul>
11021152

11031153

11041154
</ul>
1155+
1156+
<h1 align="center"> EnumSet </h1>

0 commit comments

Comments
 (0)