Skip to content

Commit a05ef60

Browse files
Update README.md
1 parent 982b296 commit a05ef60

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

README.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,3 +1024,60 @@ sequenceDiagram
10241024
</table>
10251025
</ul>
10261026
<h3> <i><ins>Note: </ins></i> Collection , Set, SortedSet, Navigable Set are all interfaces and we cannot create their objects due their abstract nature. </h3>
1027+
1028+
<h1 align="center"> About AbstractCollection </h1>
1029+
1030+
<ul>
1031+
1032+
<h3>The AbstractCollection class provides an implementation of the Collection interface. It is used to implement an unmodifiable collection, for which one needs to only extend this AbstractCollection Class and implement only the iterator and the size methods. </h3>
1033+
1034+
<ul>
1035+
<li><h3><a href= "https://github.com/AvinandanBose/JavaCollectionFramework/blob/main/AbstractCollectionDemo1.java" >AbstractCollection[Example]</a></h3></li>
1036+
1037+
```Syntax
1038+
1039+
abstract class AbstractCollection<E> extends Object implements Collection<E>
1040+
1041+
```
1042+
<table>
1043+
<tr>
1044+
<th colspan="4">Abstract Class</th>
1045+
<th >Methods</th>
1046+
1047+
</tr>
1048+
<tr>
1049+
<td colspan="4" rowspan="10" >AbstractCollection</td>
1050+
<td >Add</td>
1051+
1052+
</tr>
1053+
<tr>
1054+
<td >AddAll</td>
1055+
</tr>
1056+
<tr>
1057+
<td >Clear</td>
1058+
</tr>
1059+
<tr>
1060+
<td >Contains</td>
1061+
</tr>
1062+
<tr>
1063+
<td >ContainsAll</td>
1064+
</tr>
1065+
<tr>
1066+
<td >isEmpty</td>
1067+
</tr>
1068+
<tr>
1069+
<td >Iterator</td>
1070+
</tr>
1071+
<tr>
1072+
<td >Remove</td>
1073+
</tr>
1074+
<tr>
1075+
<td >Size</td>
1076+
</tr>
1077+
<tr>
1078+
<td >toArray</td>
1079+
</tr>
1080+
</table>
1081+
</ul>
1082+
1083+
</ul>

0 commit comments

Comments
 (0)