Skip to content

Commit 25da34a

Browse files
Update README.md
1 parent 5631a00 commit 25da34a

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,54 @@ and the size of this collection.
573573
574574
````
575575
576+
<li><h3>18. HashSet →equals</h3></li>
577+
578+
<ul>
579+
<li><h3><a href= "https://github.com/AvinandanBose/JavaCollectionFramework/blob/main/HashSetDemo22.java" > Equals</a></h3></li>
580+
</ul>
581+
582+
```Syntax
583+
584+
From: java.util.AbstractSet
585+
586+
Def: Compares the specified object with this set for equality.
587+
Returns true if the given object is also a set,
588+
the two sets have the same size,
589+
and every member of the given set is contained in this set.
590+
591+
````
592+
593+
<li><h3>19. HashSet →toString</h3></li>
594+
595+
<ul>
596+
<li><h3><a href= "https://github.com/AvinandanBose/JavaCollectionFramework/blob/main/HashSetDemo23.java" > toString</a></h3></li>
597+
</ul>
598+
599+
```Syntax
600+
601+
From: java.util.AbstractCollection
602+
603+
Def: Converts the set to string and returns the collection.
604+
605+
````
606+
607+
<li><h3>19. HashSet →hashCode</h3></li>
608+
609+
<ul>
610+
<li><h3><a href= "https://github.com/AvinandanBose/JavaCollectionFramework/blob/main/HashSetDemo24.java" > HashCode</a></h3></li>
611+
</ul>
612+
613+
```Syntax
614+
615+
From: java.util.AbstractSet
616+
617+
Def: Returns the hash code value for this set.
618+
The hash code of a set is,
619+
defined to be the sum of the hash codes of the elements in the set,
620+
where the hash code of a null element is defined to be zero.
621+
622+
````
623+
576624
<h2> </h2>
577625

578626
</ul>

0 commit comments

Comments
 (0)