File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments