<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://charlesreid1.com/w/index.php?action=history&amp;feed=atom&amp;title=Sets_in_Java</id>
	<title>Sets in Java - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://charlesreid1.com/w/index.php?action=history&amp;feed=atom&amp;title=Sets_in_Java"/>
	<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=Sets_in_Java&amp;action=history"/>
	<updated>2026-06-20T01:57:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.12</generator>
	<entry>
		<id>https://charlesreid1.com/w/index.php?title=Sets_in_Java&amp;diff=18901&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;=notes=  Sets are easy to implement in Java using hash tables - the value being stored in the hash table serves as its own key. If someone passes an object and says, &quot;Does thi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=Sets_in_Java&amp;diff=18901&amp;oldid=prev"/>
		<updated>2017-06-29T05:06:34Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=notes=  Sets are easy to implement in Java using hash tables - the value being stored in the hash table serves as its own key. If someone passes an object and says, &amp;quot;Does thi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=notes=&lt;br /&gt;
&lt;br /&gt;
Sets are easy to implement in Java using hash tables - the value being stored in the hash table serves as its own key. If someone passes an object and says, &amp;quot;Does this object live in your Set?&amp;quot; you pass that object to the hash function, get your index back, go to the hash&amp;#039;s big array, and you either get nothing back (in which case, the answer is no, sorry, it is not in our set) or you get an object back - the same object - with the same hash. And the fact that you find something means the answer is, yes, this object is in the set.&lt;br /&gt;
&lt;br /&gt;
So a Set is just an object wrapping a hash table.&lt;br /&gt;
&lt;br /&gt;
Set class in Java API docs: https://github.com/openjdk/jdk7-jdk/blob/master/src/share/classes/java/util/Set.java&lt;br /&gt;
&lt;br /&gt;
AbstractSet class in Java API docs: https://github.com/openjdk/jdk7-jdk/blob/master/src/share/classes/java/util/AbstractSet.java&lt;br /&gt;
&lt;br /&gt;
HashSet class in Java API docs: https://github.com/openjdk/jdk7-jdk/blob/master/src/share/classes/java/util/HashSet.java&lt;br /&gt;
&lt;br /&gt;
TreeSet class in Java API docs: https://github.com/openjdk/jdk7-jdk/blob/master/src/share/classes/java/util/TreeSet.java&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=flags=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Sets]]&lt;br /&gt;
[[Category:Java]]&lt;br /&gt;
[[Category:Hash Tables]]&lt;br /&gt;
&lt;br /&gt;
{{MapsFlag}}&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>