#31 Curtis Cook

Open
CurtisMCook wants to merge 2 commits from CurtisMCook/CR-MicroLabs-Generics-MyArrayList:master into master

+ 1
- 0
.idea/.name View File

@@ -0,0 +1 @@
1
+generics

+ 5
- 0
.idea/codeStyles/codeStyleConfig.xml View File

@@ -0,0 +1,5 @@
1
+<component name="ProjectCodeStyleConfiguration">
2
+  <state>
3
+    <option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
4
+  </state>
5
+</component>

+ 16
- 0
.idea/compiler.xml View File

@@ -0,0 +1,16 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="CompilerConfiguration">
4
+    <annotationProcessing>
5
+      <profile name="Maven default annotation processors profile" enabled="true">
6
+        <sourceOutputDir name="target/generated-sources/annotations" />
7
+        <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
8
+        <outputRelativeToContentRoot value="true" />
9
+        <module name="generics" />
10
+      </profile>
11
+    </annotationProcessing>
12
+    <bytecodeTargetLevel>
13
+      <module name="generics" target="1.7" />
14
+    </bytecodeTargetLevel>
15
+  </component>
16
+</project>

+ 4
- 0
.idea/encodings.xml View File

@@ -0,0 +1,4 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="Encoding" addBOMForNewFiles="with NO BOM" />
4
+</project>

+ 13
- 0
.idea/libraries/Maven__junit_junit_4_13_beta_1.xml View File

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: junit:junit:4.13-beta-1">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.13-beta-1/junit-4.13-beta-1.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.13-beta-1/junit-4.13-beta-1-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.13-beta-1/junit-4.13-beta-1-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml View File

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: org.hamcrest:hamcrest-core:1.3">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/misc.xml View File

@@ -0,0 +1,13 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="MavenProjectsManager">
4
+    <option name="originalFiles">
5
+      <list>
6
+        <option value="$PROJECT_DIR$/pom.xml" />
7
+      </list>
8
+    </option>
9
+  </component>
10
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
11
+    <output url="file://$PROJECT_DIR$/classes" />
12
+  </component>
13
+</project>

+ 8
- 0
.idea/modules.xml View File

@@ -0,0 +1,8 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ProjectModuleManager">
4
+    <modules>
5
+      <module fileurl="file://$PROJECT_DIR$/generics.iml" filepath="$PROJECT_DIR$/generics.iml" />
6
+    </modules>
7
+  </component>
8
+</project>

+ 6
- 0
.idea/vcs.xml View File

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="VcsDirectoryMappings">
4
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+  </component>
6
+</project>

+ 514
- 0
.idea/workspace.xml View File

@@ -0,0 +1,514 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="3ed3acda-69e1-4d78-93ae-20c8468595b6" name="Default Changelist" comment="">
5
+      <change afterPath="$PROJECT_DIR$/src/main/java/MyMap.java" afterDir="false" />
6
+      <change afterPath="$PROJECT_DIR$/src/test/java/MyMapTest.java" afterDir="false" />
7
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
8
+    </list>
9
+    <ignored path="$PROJECT_DIR$/target/" />
10
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
11
+    <option name="SHOW_DIALOG" value="false" />
12
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
13
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
14
+    <option name="LAST_RESOLUTION" value="IGNORE" />
15
+  </component>
16
+  <component name="CoverageDataManager">
17
+    <SUITE FILE_PATH="coverage/generics$All_in_generics.ic" NAME="All in generics Coverage Results" MODIFIED="1543607412603" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
18
+    <SUITE FILE_PATH="coverage/generics$MySetTest.ic" NAME="MySetTest Coverage Results" MODIFIED="1543449822920" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
19
+    <SUITE FILE_PATH="coverage/generics$MyMapTest.ic" NAME="MyMapTest Coverage Results" MODIFIED="1543607401770" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
20
+    <SUITE FILE_PATH="coverage/generics$MyMapTest_containsKeyTest2.ic" NAME="MyMapTest.containsKeyTest2 Coverage Results" MODIFIED="1543500091403" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
21
+    <SUITE FILE_PATH="coverage/generics$MyMapTest_containsValueTest2.ic" NAME="MyMapTest.containsValueTest2 Coverage Results" MODIFIED="1543499994189" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
22
+    <SUITE FILE_PATH="coverage/generics$MyArrayListTest.ic" NAME="MyArrayListTest Coverage Results" MODIFIED="1543445344664" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
23
+  </component>
24
+  <component name="CoverageViewManager">
25
+    <option name="myElementSize" value="203" />
26
+  </component>
27
+  <component name="FileEditorManager">
28
+    <splitter split-orientation="horizontal" split-proportion="0.5">
29
+      <split-first>
30
+        <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
31
+          <file pinned="false" current-in-tab="true">
32
+            <entry file="file://$PROJECT_DIR$/src/test/java/MyMapTest.java">
33
+              <provider selected="true" editor-type-id="text-editor">
34
+                <state relative-caret-position="1230">
35
+                  <caret line="82" column="5" selection-start-line="82" selection-start-column="5" selection-end-line="82" selection-end-column="5" />
36
+                  <folding>
37
+                    <element signature="imports" expanded="true" />
38
+                  </folding>
39
+                </state>
40
+              </provider>
41
+            </entry>
42
+          </file>
43
+          <file pinned="false" current-in-tab="false">
44
+            <entry file="file://$PROJECT_DIR$/src/main/java/MySet.java">
45
+              <provider selected="true" editor-type-id="text-editor">
46
+                <state relative-caret-position="285">
47
+                  <caret line="21" column="5" lean-forward="true" selection-start-line="21" selection-start-column="5" selection-end-line="21" selection-end-column="5" />
48
+                  <folding>
49
+                    <element signature="e#606#607#0" expanded="true" />
50
+                    <element signature="e#652#653#0" expanded="true" />
51
+                    <element signature="e#1335#1336#0" expanded="true" />
52
+                    <element signature="e#1373#1374#0" expanded="true" />
53
+                  </folding>
54
+                </state>
55
+              </provider>
56
+            </entry>
57
+          </file>
58
+        </leaf>
59
+      </split-first>
60
+      <split-second>
61
+        <leaf>
62
+          <file pinned="false" current-in-tab="true">
63
+            <entry file="file://$PROJECT_DIR$/src/main/java/MyMap.java">
64
+              <provider selected="true" editor-type-id="text-editor">
65
+                <state relative-caret-position="870">
66
+                  <caret line="60" column="9" lean-forward="true" selection-start-line="60" selection-start-column="9" selection-end-line="60" selection-end-column="9" />
67
+                  <folding>
68
+                    <element signature="e#987#988#0" expanded="true" />
69
+                    <element signature="e#1014#1015#0" expanded="true" />
70
+                    <element signature="e#1838#1839#0" expanded="true" />
71
+                  </folding>
72
+                </state>
73
+              </provider>
74
+            </entry>
75
+          </file>
76
+        </leaf>
77
+      </split-second>
78
+    </splitter>
79
+  </component>
80
+  <component name="FileTemplateManagerImpl">
81
+    <option name="RECENT_TEMPLATES">
82
+      <list>
83
+        <option value="Class" />
84
+      </list>
85
+    </option>
86
+  </component>
87
+  <component name="Git.Settings">
88
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
89
+  </component>
90
+  <component name="IdeDocumentHistory">
91
+    <option name="CHANGED_PATHS">
92
+      <list>
93
+        <option value="$PROJECT_DIR$/src/test/java/MyArrayListTest.java" />
94
+        <option value="$PROJECT_DIR$/src/main/java/MyArrayList.java" />
95
+        <option value="$PROJECT_DIR$/src/test/java/MySetTest.java" />
96
+        <option value="$PROJECT_DIR$/src/main/java/MySet.java" />
97
+        <option value="$PROJECT_DIR$/src/main/java/MyMap.java" />
98
+        <option value="$PROJECT_DIR$/src/test/java/MyMapTest.java" />
99
+      </list>
100
+    </option>
101
+  </component>
102
+  <component name="ProjectFrameBounds">
103
+    <option name="y" value="23" />
104
+    <option name="width" value="1440" />
105
+    <option name="height" value="877" />
106
+  </component>
107
+  <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
108
+  <component name="ProjectView">
109
+    <navigator proportions="" version="1">
110
+      <foldersAlwaysOnTop value="true" />
111
+    </navigator>
112
+    <panes>
113
+      <pane id="ProjectPane">
114
+        <subPane>
115
+          <expand>
116
+            <path>
117
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
118
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
119
+            </path>
120
+            <path>
121
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
122
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
123
+              <item name="src" type="462c0819:PsiDirectoryNode" />
124
+            </path>
125
+            <path>
126
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
127
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
128
+              <item name="src" type="462c0819:PsiDirectoryNode" />
129
+              <item name="main" type="462c0819:PsiDirectoryNode" />
130
+            </path>
131
+            <path>
132
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
133
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
134
+              <item name="src" type="462c0819:PsiDirectoryNode" />
135
+              <item name="main" type="462c0819:PsiDirectoryNode" />
136
+              <item name="java" type="462c0819:PsiDirectoryNode" />
137
+            </path>
138
+            <path>
139
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
140
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
141
+              <item name="src" type="462c0819:PsiDirectoryNode" />
142
+              <item name="test" type="462c0819:PsiDirectoryNode" />
143
+            </path>
144
+            <path>
145
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
146
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
147
+              <item name="src" type="462c0819:PsiDirectoryNode" />
148
+              <item name="test" type="462c0819:PsiDirectoryNode" />
149
+              <item name="java" type="462c0819:PsiDirectoryNode" />
150
+            </path>
151
+          </expand>
152
+          <select />
153
+        </subPane>
154
+      </pane>
155
+      <pane id="PackagesPane" />
156
+      <pane id="Scope" />
157
+    </panes>
158
+  </component>
159
+  <component name="PropertiesComponent">
160
+    <property name="WebServerToolWindowFactoryState" value="false" />
161
+    <property name="aspect.path.notification.shown" value="true" />
162
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1543607421084" />
163
+    <property name="last_opened_file_path" value="$PROJECT_DIR$/pom.xml" />
164
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
165
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
166
+    <property name="project.structure.last.edited" value="Project" />
167
+    <property name="project.structure.proportion" value="0.15" />
168
+    <property name="project.structure.side.proportion" value="0.0" />
169
+    <property name="settings.editor.selected.configurable" value="preferences.sourceCode.Java" />
170
+  </component>
171
+  <component name="RunDashboard">
172
+    <option name="ruleStates">
173
+      <list>
174
+        <RuleState>
175
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
176
+        </RuleState>
177
+        <RuleState>
178
+          <option name="name" value="StatusDashboardGroupingRule" />
179
+        </RuleState>
180
+      </list>
181
+    </option>
182
+  </component>
183
+  <component name="RunManager" selected="JUnit.All in generics">
184
+    <configuration name="All in generics" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
185
+      <module name="generics" />
186
+      <option name="PACKAGE_NAME" value="" />
187
+      <option name="TEST_OBJECT" value="package" />
188
+      <method v="2">
189
+        <option name="Make" enabled="true" />
190
+      </method>
191
+    </configuration>
192
+    <configuration name="MyMapTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
193
+      <module name="generics" />
194
+      <option name="PACKAGE_NAME" value="" />
195
+      <option name="MAIN_CLASS_NAME" value="MyMapTest" />
196
+      <method v="2">
197
+        <option name="Make" enabled="true" />
198
+      </method>
199
+    </configuration>
200
+    <configuration name="MyMapTest.addTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
201
+      <module name="generics" />
202
+      <option name="PACKAGE_NAME" value="" />
203
+      <option name="MAIN_CLASS_NAME" value="MyMapTest" />
204
+      <option name="METHOD_NAME" value="addTest" />
205
+      <option name="TEST_OBJECT" value="method" />
206
+      <method v="2">
207
+        <option name="Make" enabled="true" />
208
+      </method>
209
+    </configuration>
210
+    <configuration name="MyMapTest.getTest2" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
211
+      <module name="generics" />
212
+      <option name="PACKAGE_NAME" value="" />
213
+      <option name="MAIN_CLASS_NAME" value="MyMapTest" />
214
+      <option name="METHOD_NAME" value="getTest2" />
215
+      <option name="TEST_OBJECT" value="method" />
216
+      <method v="2">
217
+        <option name="Make" enabled="true" />
218
+      </method>
219
+    </configuration>
220
+    <configuration name="MyMapTest.putAndSizeTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
221
+      <module name="generics" />
222
+      <option name="PACKAGE_NAME" value="" />
223
+      <option name="MAIN_CLASS_NAME" value="MyMapTest" />
224
+      <option name="METHOD_NAME" value="putAndSizeTest" />
225
+      <option name="TEST_OBJECT" value="method" />
226
+      <method v="2">
227
+        <option name="Make" enabled="true" />
228
+      </method>
229
+    </configuration>
230
+    <recent_temporary>
231
+      <list>
232
+        <item itemvalue="JUnit.All in generics" />
233
+        <item itemvalue="JUnit.MyMapTest" />
234
+        <item itemvalue="JUnit.MyMapTest.getTest2" />
235
+        <item itemvalue="JUnit.MyMapTest.putAndSizeTest" />
236
+        <item itemvalue="JUnit.MyMapTest.addTest" />
237
+      </list>
238
+    </recent_temporary>
239
+  </component>
240
+  <component name="SvnConfiguration">
241
+    <configuration />
242
+  </component>
243
+  <component name="TaskManager">
244
+    <task active="true" id="Default" summary="Default task">
245
+      <changelist id="3ed3acda-69e1-4d78-93ae-20c8468595b6" name="Default Changelist" comment="" />
246
+      <created>1543341433134</created>
247
+      <option name="number" value="Default" />
248
+      <option name="presentableId" value="Default" />
249
+      <updated>1543341433134</updated>
250
+      <workItem from="1543341434901" duration="18243000" />
251
+      <workItem from="1543450045411" duration="9186000" />
252
+      <workItem from="1543586625087" duration="4525000" />
253
+    </task>
254
+    <servers />
255
+  </component>
256
+  <component name="TestHistory">
257
+    <history-entry file="MyMapTest_putAndSizeTest - 2018.11.30 at 14h 45m 34s.xml">
258
+      <configuration name="MyMapTest.putAndSizeTest" configurationId="JUnit" />
259
+    </history-entry>
260
+    <history-entry file="MyMapTest_getTest2 - 2018.11.30 at 14h 45m 40s.xml">
261
+      <configuration name="MyMapTest.getTest2" configurationId="JUnit" />
262
+    </history-entry>
263
+    <history-entry file="MyMapTest_putAndSizeTest - 2018.11.30 at 14h 48m 07s.xml">
264
+      <configuration name="MyMapTest.putAndSizeTest" configurationId="JUnit" />
265
+    </history-entry>
266
+    <history-entry file="MyMapTest_getTest2 - 2018.11.30 at 14h 48m 14s.xml">
267
+      <configuration name="MyMapTest.getTest2" configurationId="JUnit" />
268
+    </history-entry>
269
+    <history-entry file="MyMapTest_getTest2 - 2018.11.30 at 14h 49m 03s.xml">
270
+      <configuration name="MyMapTest.getTest2" configurationId="JUnit" />
271
+    </history-entry>
272
+    <history-entry file="MyMapTest_putAndSizeTest - 2018.11.30 at 14h 49m 34s.xml">
273
+      <configuration name="MyMapTest.putAndSizeTest" configurationId="JUnit" />
274
+    </history-entry>
275
+    <history-entry file="MyMapTest_putAndSizeTest - 2018.11.30 at 14h 49m 41s.xml">
276
+      <configuration name="MyMapTest.putAndSizeTest" configurationId="JUnit" />
277
+    </history-entry>
278
+    <history-entry file="MyMapTest_getTest2 - 2018.11.30 at 14h 49m 49s.xml">
279
+      <configuration name="MyMapTest.getTest2" configurationId="JUnit" />
280
+    </history-entry>
281
+    <history-entry file="MyMapTest - 2018.11.30 at 14h 50m 05s.xml">
282
+      <configuration name="MyMapTest" configurationId="JUnit" />
283
+    </history-entry>
284
+    <history-entry file="All_in_generics - 2018.11.30 at 14h 50m 16s.xml">
285
+      <configuration name="All in generics" configurationId="JUnit" />
286
+    </history-entry>
287
+  </component>
288
+  <component name="TimeTrackingManager">
289
+    <option name="totallyTimeSpent" value="31954000" />
290
+  </component>
291
+  <component name="ToolWindowManager">
292
+    <frame x="0" y="23" width="1440" height="877" extended-state="0" />
293
+    <editor active="true" />
294
+    <layout>
295
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.2532189" />
296
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
297
+      <window_info id="Designer" order="2" />
298
+      <window_info id="Image Layers" order="3" />
299
+      <window_info id="Capture Tool" order="4" />
300
+      <window_info id="UI Designer" order="5" />
301
+      <window_info id="Favorites" order="6" side_tool="true" />
302
+      <window_info anchor="bottom" id="Message" order="0" />
303
+      <window_info anchor="bottom" id="Find" order="1" />
304
+      <window_info anchor="bottom" id="Run" order="2" weight="0.3299363" />
305
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
306
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
307
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
308
+      <window_info anchor="bottom" id="TODO" order="6" />
309
+      <window_info anchor="bottom" id="Terminal" order="7" />
310
+      <window_info anchor="bottom" id="Docker" order="8" show_stripe_button="false" />
311
+      <window_info anchor="bottom" id="Event Log" order="9" side_tool="true" />
312
+      <window_info anchor="bottom" id="Messages" order="10" weight="0.3299363" />
313
+      <window_info anchor="bottom" id="Database Changes" order="11" />
314
+      <window_info anchor="bottom" id="Version Control" order="12" />
315
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
316
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
317
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
318
+      <window_info anchor="right" id="Maven" order="3" />
319
+      <window_info anchor="right" id="Palette" order="4" />
320
+      <window_info anchor="right" id="Capture Analysis" order="5" />
321
+      <window_info anchor="right" id="Database" order="6" />
322
+      <window_info anchor="right" id="Palette&#9;" order="7" />
323
+      <window_info anchor="right" id="Theme Preview" order="8" />
324
+      <window_info anchor="right" id="Coverage" order="9" side_tool="true" weight="0.3297568" />
325
+    </layout>
326
+  </component>
327
+  <component name="TypeScriptGeneratedFilesManager">
328
+    <option name="version" value="1" />
329
+  </component>
330
+  <component name="editorHistoryManager">
331
+    <entry file="file://$PROJECT_DIR$/pom.xml">
332
+      <provider selected="true" editor-type-id="text-editor">
333
+        <state relative-caret-position="420">
334
+          <caret line="28" column="12" lean-forward="true" selection-start-line="28" selection-start-column="12" selection-end-line="28" selection-end-column="12" />
335
+        </state>
336
+      </provider>
337
+    </entry>
338
+    <entry file="uml://JAVA/">
339
+      <provider selected="true" editor-type-id="UmlEditorProvider">
340
+        <state>
341
+          <ID>JAVA</ID>
342
+          <OriginalElement />
343
+          <nodes>
344
+            <node x="" y="">com</node>
345
+            <node x="" y="">netscape</node>
346
+            <node x="" y="">junit</node>
347
+            <node x="" y="">oracle</node>
348
+            <node x="" y="">org</node>
349
+            <node x="" y="">resources</node>
350
+            <node x="" y="">toolbarButtonGraphics</node>
351
+            <node x="" y="">MyArrayList</node>
352
+            <node x="" y="">sun</node>
353
+            <node x="" y="">META-INF</node>
354
+            <node x="" y="">jdk</node>
355
+            <node x="" y="">apple</node>
356
+            <node x="" y="">groovyjarjarasm</node>
357
+            <node x="" y="">java</node>
358
+            <node x="" y="">groovy</node>
359
+            <node x="" y="">javax</node>
360
+            <node x="" y="">groovyjarjarcommonscli</node>
361
+            <node x="" y="">javafx</node>
362
+            <node x="" y="">MyArrayListTest</node>
363
+            <node x="" y="">groovyjarjarantlr</node>
364
+          </nodes>
365
+          <notes />
366
+          <edges />
367
+          <settings layout="Hierarchic Group" zoom="0.8377425044091711" x="256.0" y="274.0" />
368
+          <SelectedNodes />
369
+          <Categories />
370
+          <SCOPE>All</SCOPE>
371
+          <VISIBILITY>private</VISIBILITY>
372
+        </state>
373
+      </provider>
374
+    </entry>
375
+    <entry file="uml://JAVA/MyArrayList">
376
+      <provider selected="true" editor-type-id="UmlEditorProvider">
377
+        <state>
378
+          <ID>JAVA</ID>
379
+          <OriginalElement>MyArrayList</OriginalElement>
380
+          <nodes>
381
+            <node x="" y="">MyArrayList</node>
382
+          </nodes>
383
+          <notes />
384
+          <edges />
385
+          <settings layout="Hierarchic Group" zoom="1.0" x="61.0" y="15.0" />
386
+          <SelectedNodes />
387
+          <Categories />
388
+          <SCOPE>All</SCOPE>
389
+          <VISIBILITY>private</VISIBILITY>
390
+        </state>
391
+      </provider>
392
+    </entry>
393
+    <entry file="file://$PROJECT_DIR$/src/test/java/MyArrayListTest.java">
394
+      <provider selected="true" editor-type-id="text-editor">
395
+        <state relative-caret-position="375">
396
+          <caret line="25" column="8" selection-start-line="25" selection-start-column="8" selection-end-line="25" selection-end-column="8" />
397
+          <folding>
398
+            <element signature="imports" expanded="true" />
399
+          </folding>
400
+        </state>
401
+      </provider>
402
+    </entry>
403
+    <entry file="file://$PROJECT_DIR$/src/test/java/MySetTest.java">
404
+      <provider selected="true" editor-type-id="text-editor">
405
+        <state relative-caret-position="930">
406
+          <caret line="62" column="32" selection-start-line="62" selection-start-column="32" selection-end-line="62" selection-end-column="32" />
407
+          <folding>
408
+            <element signature="imports" expanded="true" />
409
+          </folding>
410
+        </state>
411
+      </provider>
412
+    </entry>
413
+    <entry file="file://$PROJECT_DIR$/src/main/java/MyArrayList.java">
414
+      <provider selected="true" editor-type-id="text-editor">
415
+        <state relative-caret-position="-203">
416
+          <caret line="13" column="8" selection-start-line="13" selection-start-column="8" selection-end-line="13" selection-end-column="8" />
417
+          <folding>
418
+            <element signature="e#83#84#0" expanded="true" />
419
+            <element signature="e#129#130#0" expanded="true" />
420
+            <element signature="e#2009#2010#0" expanded="true" />
421
+            <element signature="e#2052#2053#0" expanded="true" />
422
+            <element signature="e#2283#2284#0" expanded="true" />
423
+            <element signature="e#2321#2322#0" expanded="true" />
424
+          </folding>
425
+        </state>
426
+      </provider>
427
+    </entry>
428
+    <entry file="file://$PROJECT_DIR$/src/main/java/MySet.java">
429
+      <provider selected="true" editor-type-id="text-editor">
430
+        <state relative-caret-position="285">
431
+          <caret line="21" column="5" lean-forward="true" selection-start-line="21" selection-start-column="5" selection-end-line="21" selection-end-column="5" />
432
+          <folding>
433
+            <element signature="e#606#607#0" expanded="true" />
434
+            <element signature="e#652#653#0" expanded="true" />
435
+            <element signature="e#1335#1336#0" expanded="true" />
436
+            <element signature="e#1373#1374#0" expanded="true" />
437
+          </folding>
438
+        </state>
439
+      </provider>
440
+    </entry>
441
+    <entry file="file://$PROJECT_DIR$/src/test/java/MyMapTest.java">
442
+      <provider selected="true" editor-type-id="text-editor">
443
+        <state relative-caret-position="1230">
444
+          <caret line="82" column="5" selection-start-line="82" selection-start-column="5" selection-end-line="82" selection-end-column="5" />
445
+          <folding>
446
+            <element signature="imports" expanded="true" />
447
+          </folding>
448
+        </state>
449
+      </provider>
450
+    </entry>
451
+    <entry file="file://$PROJECT_DIR$/src/main/java/MyMap.java">
452
+      <provider selected="true" editor-type-id="text-editor">
453
+        <state relative-caret-position="870">
454
+          <caret line="60" column="9" lean-forward="true" selection-start-line="60" selection-start-column="9" selection-end-line="60" selection-end-column="9" />
455
+          <folding>
456
+            <element signature="e#987#988#0" expanded="true" />
457
+            <element signature="e#1014#1015#0" expanded="true" />
458
+            <element signature="e#1838#1839#0" expanded="true" />
459
+          </folding>
460
+        </state>
461
+      </provider>
462
+    </entry>
463
+  </component>
464
+  <component name="masterDetails">
465
+    <states>
466
+      <state key="GlobalLibrariesConfigurable.UI">
467
+        <settings>
468
+          <splitter-proportions>
469
+            <option name="proportions">
470
+              <list>
471
+                <option value="0.2" />
472
+              </list>
473
+            </option>
474
+          </splitter-proportions>
475
+        </settings>
476
+      </state>
477
+      <state key="JdkListConfigurable.UI">
478
+        <settings>
479
+          <last-edited>1.8</last-edited>
480
+          <splitter-proportions>
481
+            <option name="proportions">
482
+              <list>
483
+                <option value="0.2" />
484
+              </list>
485
+            </option>
486
+          </splitter-proportions>
487
+        </settings>
488
+      </state>
489
+      <state key="ProjectJDKs.UI">
490
+        <settings>
491
+          <last-edited>1.8</last-edited>
492
+          <splitter-proportions>
493
+            <option name="proportions">
494
+              <list>
495
+                <option value="0.2" />
496
+              </list>
497
+            </option>
498
+          </splitter-proportions>
499
+        </settings>
500
+      </state>
501
+      <state key="ProjectLibrariesConfigurable.UI">
502
+        <settings>
503
+          <splitter-proportions>
504
+            <option name="proportions">
505
+              <list>
506
+                <option value="0.2" />
507
+              </list>
508
+            </option>
509
+          </splitter-proportions>
510
+        </settings>
511
+      </state>
512
+    </states>
513
+  </component>
514
+</project>

+ 16
- 0
generics.iml View File

@@ -0,0 +1,16 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3
+  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7">
4
+    <output url="file://$MODULE_DIR$/target/classes" />
5
+    <output-test url="file://$MODULE_DIR$/target/test-classes" />
6
+    <content url="file://$MODULE_DIR$">
7
+      <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
8
+      <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
9
+      <excludeFolder url="file://$MODULE_DIR$/target" />
10
+    </content>
11
+    <orderEntry type="inheritedJdk" />
12
+    <orderEntry type="sourceFolder" forTests="false" />
13
+    <orderEntry type="library" name="Maven: junit:junit:4.13-beta-1" level="project" />
14
+    <orderEntry type="library" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
15
+  </component>
16
+</module>

+ 87
- 0
src/main/java/MyArrayList.java View File

@@ -0,0 +1,87 @@
1
+public class MyArrayList<E> {
2
+
3
+    private E[] elements;
4
+
5
+    public MyArrayList() {
6
+        elements = (E[]) new Object[0];
7
+    }
8
+
9
+    public MyArrayList(int index) {
10
+        elements = (E[]) new Object[index];
11
+    }
12
+
13
+    public boolean add(E element) {
14
+        E[] updatedElements = (E[]) new Object[elements.length + 1];
15
+        for (int i = 0; i < elements.length; i++) {
16
+            updatedElements[i] = elements[i];
17
+        }
18
+        updatedElements[updatedElements.length - 1] = element;
19
+        elements = updatedElements;
20
+        return true;
21
+    }
22
+
23
+    public void add(int index, E element) {
24
+        E[] updatedElements = (E[]) new Object[elements.length + 1];
25
+        for (int i = 0, j = 0; i < elements.length; i++, j++) {
26
+            if (i != index) {
27
+                updatedElements[j] = elements[i];
28
+            } else {
29
+                updatedElements[j] = element;
30
+                j++;
31
+                updatedElements[j] = elements[i];
32
+            }
33
+        }
34
+        elements = updatedElements;
35
+    }
36
+
37
+    public E get(int index) {
38
+        return elements[index];
39
+    }
40
+
41
+    public E remove(int index) {
42
+        E removedElement = elements[index];
43
+        E[] updatedElements = (E[]) new Object[elements.length - 1];
44
+        for (int i = 0, j = 0; i < elements.length; i++) {
45
+            if (i != index) {
46
+                updatedElements[j] = elements[i];
47
+                j++;
48
+            }
49
+        }
50
+        elements = updatedElements;
51
+        return removedElement;
52
+    }
53
+
54
+    public E set(int index, E element) {
55
+        E originalElement = elements[index];
56
+        E[] updatedElements = (E[]) new Object[elements.length];
57
+        for (int i = 0; i < elements.length; i++) {
58
+            if (i != index) {
59
+                updatedElements[i] = elements[i];
60
+            } else {
61
+                updatedElements[i] = element;
62
+            }
63
+        }
64
+        return originalElement;
65
+    }
66
+
67
+    public void clear() {
68
+        elements = (E[]) new Object[0];
69
+    }
70
+
71
+    public boolean isEmpty() {
72
+        return elements.length == 0;
73
+    }
74
+
75
+    public boolean contains(Object object) {
76
+        for (E element : elements) {
77
+            if (element.equals(object)) {
78
+                return true;
79
+            }
80
+        }
81
+        return false;
82
+    }
83
+
84
+    public int size() {
85
+        return elements.length;
86
+    }
87
+}

+ 79
- 0
src/main/java/MyMap.java View File

@@ -0,0 +1,79 @@
1
+public class MyMap<E> {
2
+
3
+    private E[] keys;
4
+    private E[] values;
5
+
6
+
7
+    public MyMap() {
8
+        keys = (E[]) new Object[0];
9
+        values = (E[]) new Object[0];
10
+    }
11
+
12
+    public void clear() {
13
+        keys = (E[]) new Object[0];
14
+        values = (E[]) new Object[0];
15
+    }
16
+
17
+    public boolean containsKey(Object key) {
18
+        for (E element : keys) {
19
+            if (element.equals(key)) {
20
+                return true;
21
+            }
22
+        }
23
+        return false;
24
+    }
25
+
26
+    public boolean containsValue(Object value) {
27
+        for (E element : values) {
28
+            if (element.equals(value)) {
29
+                return true;
30
+            }
31
+        }
32
+        return false;
33
+    }
34
+
35
+    public E get(Object key) {
36
+        for (int i = 0; i < keys.length; i++) {
37
+            if (keys[i].equals(key)) {
38
+                return values[i];
39
+            }
40
+        }
41
+        return null;
42
+    }
43
+
44
+    public boolean isEmpty() {
45
+        return keys.length == 0;
46
+    }
47
+
48
+    public E[] keySet() {
49
+        return keys;
50
+    }
51
+
52
+    public E put(E key, E value) {
53
+        E originalValue = null;
54
+
55
+        for (int i = 0; i < keys.length; i++) {
56
+            if (keys[i].equals(key)) {
57
+                originalValue = values[i];
58
+                values[i] = value;
59
+                return originalValue;
60
+            }
61
+        }
62
+
63
+        E[] updatedKeys = (E[]) new Object[keys.length + 1];
64
+        E[] updatedValues = (E[]) new Object[values.length + 1];
65
+        for (int i = 0; i < keys.length; i++) {
66
+            updatedKeys[i] = keys[i];
67
+            updatedValues[i] = values[i];
68
+        }
69
+        updatedKeys[updatedKeys.length - 1] = key;
70
+        updatedValues[updatedValues.length - 1] = value;
71
+        keys = updatedKeys;
72
+        values = updatedValues;
73
+        return originalValue;
74
+    }
75
+
76
+    public int size() {
77
+        return keys.length;
78
+    }
79
+}

+ 56
- 0
src/main/java/MySet.java View File

@@ -0,0 +1,56 @@
1
+public class MySet<E> {
2
+
3
+    private E[] elements;
4
+
5
+    public MySet() {
6
+        elements = (E[]) new Object[0];
7
+    }
8
+
9
+    public boolean add(E element) {
10
+        E[] updatedElements = (E[]) new Object[elements.length + 1];
11
+        for (E e : elements) {
12
+            if (e.equals(element)) {
13
+                return false;
14
+            }
15
+        }
16
+        for (int i = 0; i < elements.length; i++) {
17
+            updatedElements[i] = elements[i];
18
+        }
19
+        updatedElements[updatedElements.length - 1] = element;
20
+        elements = updatedElements;
21
+        return true;
22
+    }
23
+
24
+    public void clear() {
25
+        elements = (E[]) new Object[0];
26
+    }
27
+
28
+    public boolean contains(Object object) {
29
+        for (E element : elements) {
30
+            if (element.equals(object)) {
31
+                return true;
32
+            }
33
+        }
34
+        return false;
35
+    }
36
+
37
+    public boolean isEmpty() {
38
+        return elements.length == 0;
39
+    }
40
+
41
+    public boolean remove(Object object) {
42
+        E[] updatedElements = (E[]) new Object[elements.length - 1];
43
+        for (int i = 0, j = 0; i < elements.length; i++) {
44
+            if (!elements[i].equals(object)) {
45
+                updatedElements[j] = elements[i];
46
+                j++;
47
+            }
48
+        }
49
+        elements = updatedElements;
50
+        return true;
51
+    }
52
+
53
+    public int size() {
54
+        return elements.length;
55
+    }
56
+}

+ 128
- 0
src/test/java/MyArrayListTest.java View File

@@ -0,0 +1,128 @@
1
+import org.junit.Assert;
2
+import org.junit.Test;
3
+
4
+public class MyArrayListTest {
5
+
6
+    @Test
7
+    public void addTest1() {
8
+        MyArrayList myArrayList = new MyArrayList();
9
+        char letter = 'c';
10
+        boolean actual = myArrayList.add(letter);
11
+
12
+        Assert.assertEquals(true, actual);
13
+    }
14
+
15
+    @Test
16
+    public void addTest2() {
17
+        MyArrayList myArrayList = new MyArrayList();
18
+        char letter1 = 'C';
19
+        char letter2 = 'J';
20
+        char letter3 = 'C';
21
+        myArrayList.add(letter1);
22
+        myArrayList.add(letter2);
23
+        myArrayList.add(letter3);
24
+
25
+        myArrayList.add(2, 'A');
26
+
27
+        int actual = myArrayList.size();
28
+
29
+        Assert.assertEquals(4, actual);
30
+    }
31
+
32
+    @Test
33
+    public void getTest() {
34
+        MyArrayList myArrayList = new MyArrayList();
35
+        myArrayList.add(1);
36
+        myArrayList.add(2);
37
+        myArrayList.add(3);
38
+
39
+        int actual = (int) myArrayList.get(1);
40
+
41
+        Assert.assertEquals(2, actual);
42
+    }
43
+
44
+    @Test
45
+    public void removeTest() {
46
+        MyArrayList myArrayList = new MyArrayList();
47
+        myArrayList.add(1);
48
+        myArrayList.add(2);
49
+        myArrayList.add(3);
50
+
51
+        int actual = (int) myArrayList.remove(2);
52
+
53
+        Assert.assertEquals(3, actual);
54
+    }
55
+
56
+    @Test
57
+    public void setTest() {
58
+        MyArrayList myArrayList = new MyArrayList();
59
+        myArrayList.add("Caleb");
60
+        myArrayList.add("Liam");
61
+        myArrayList.add("Ashley");
62
+
63
+        String actual = (String) myArrayList.set(2, "Curtis");
64
+
65
+        Assert.assertEquals("Ashley", actual);
66
+    }
67
+
68
+    @Test
69
+    public void clearTest() {
70
+        MyArrayList myArrayList = new MyArrayList();
71
+        myArrayList.add("Caleb");
72
+        myArrayList.add("Liam");
73
+        myArrayList.add("Ashley");
74
+
75
+        myArrayList.clear();
76
+        int actual = myArrayList.size();
77
+
78
+        Assert.assertEquals(0, actual);
79
+    }
80
+
81
+    @Test
82
+    public void isEmptyTest() {
83
+        MyArrayList myArrayList = new MyArrayList();
84
+        myArrayList.add(4.1);
85
+        myArrayList.add(16.2);
86
+        myArrayList.add(32.3);
87
+
88
+        boolean actual = myArrayList.isEmpty();
89
+
90
+        Assert.assertEquals(false, actual);
91
+    }
92
+
93
+    @Test
94
+    public void containsTest1() {
95
+        MyArrayList myArrayList = new MyArrayList();
96
+        myArrayList.add(4.1);
97
+        myArrayList.add(16.2);
98
+        myArrayList.add(32.3);
99
+
100
+        boolean actual = myArrayList.contains(16.2);
101
+
102
+        Assert.assertEquals(true, actual);
103
+    }
104
+
105
+    @Test
106
+    public void containsTest2() {
107
+        MyArrayList myArrayList = new MyArrayList();
108
+        myArrayList.add(4.1);
109
+        myArrayList.add(16.2);
110
+        myArrayList.add(32.3);
111
+
112
+        boolean actual = myArrayList.contains(16);
113
+
114
+        Assert.assertEquals(false, actual);
115
+    }
116
+
117
+    @Test
118
+    public void sizeTest() {
119
+        MyArrayList myArrayList = new MyArrayList(3);
120
+        myArrayList.set(0,'A');
121
+        myArrayList.set(1,'B');
122
+        myArrayList.set(2,'C');
123
+
124
+        int actual = myArrayList.size();
125
+
126
+        Assert.assertEquals(3, actual);
127
+    }
128
+}

+ 119
- 0
src/test/java/MyMapTest.java View File

@@ -0,0 +1,119 @@
1
+import org.junit.Assert;
2
+import org.junit.Test;
3
+
4
+public class MyMapTest {
5
+
6
+    @Test
7
+    public void clearTest() {
8
+        MyMap myMap = new MyMap();
9
+        myMap.put("Curtis", 37);
10
+        myMap.put("Ashley", 30);
11
+        myMap.put("Caleb", 8);
12
+        myMap.put("Liam", 3);
13
+        myMap.clear();
14
+
15
+        int actual = myMap.size();
16
+
17
+        Assert.assertEquals(0, actual);
18
+    }
19
+
20
+    @Test
21
+    public void containsKeyTest1() {
22
+        MyMap myMap = new MyMap();
23
+        myMap.put("Curtis", 37);
24
+        myMap.put("Ashley", 30);
25
+        myMap.put("Caleb", 8);
26
+        myMap.put("Liam", 3);
27
+
28
+        boolean actual = myMap.containsKey("Caleb");
29
+
30
+        Assert.assertEquals(true, actual);
31
+    }
32
+
33
+    @Test
34
+    public void containsKeyTest2() {
35
+        MyMap myMap = new MyMap();
36
+        myMap.put("Curtis", 37);
37
+        myMap.put("Ashley", 30);
38
+        myMap.put("Caleb", 8);
39
+        myMap.put("Liam", 3);
40
+
41
+        boolean actual = myMap.containsKey("Lionel");
42
+
43
+        Assert.assertEquals(false, actual);
44
+    }
45
+
46
+    @Test
47
+    public void containsValueTest1() {
48
+        MyMap myMap = new MyMap();
49
+        myMap.put("Curtis", 37);
50
+        myMap.put("Ashley", 30);
51
+        myMap.put("Caleb", 8);
52
+        myMap.put("Liam", 3);
53
+
54
+        boolean actual = myMap.containsValue(30);
55
+
56
+        Assert.assertEquals(true, actual);
57
+    }
58
+
59
+    @Test
60
+    public void containsValueTest2() {
61
+        MyMap myMap = new MyMap();
62
+        myMap.put("Curtis", 37);
63
+        myMap.put("Ashley", 30);
64
+        myMap.put("Caleb", 8);
65
+        myMap.put("Liam", 3);
66
+
67
+        boolean actual = myMap.containsValue(40);
68
+
69
+        Assert.assertEquals(false, actual);
70
+    }
71
+
72
+    @Test
73
+    public void getTest1() {
74
+        MyMap myMap = new MyMap();
75
+        myMap.put("Curtis", 37);
76
+        myMap.put("Ashley", 30);
77
+        myMap.put("Caleb", 8);
78
+        myMap.put("Liam", 3);
79
+
80
+        int actual = (int) myMap.get("Caleb");
81
+
82
+        Assert.assertEquals(8, actual);
83
+    }
84
+
85
+    @Test
86
+    public void isEmptyTest() {
87
+        MyMap myMap = new MyMap();
88
+
89
+        boolean actual = myMap.isEmpty();
90
+
91
+        Assert.assertEquals(true, actual);
92
+    }
93
+
94
+    @Test
95
+    public void keySetTest() {
96
+        MyMap myMap = new MyMap();
97
+        myMap.put("Curtis", 37);
98
+        myMap.put("Ashley", 30);
99
+        myMap.put("Caleb", 8);
100
+        myMap.put("Liam", 3);
101
+
102
+        Object[] actual = myMap.keySet();
103
+
104
+        Assert.assertEquals(4, actual.length);
105
+    }
106
+
107
+    @Test
108
+    public void putAndSizeTest() {
109
+        MyMap myMap = new MyMap();
110
+        myMap.put("Curtis", 37);
111
+        myMap.put("Ashley", 30);
112
+        myMap.put("Curtis", 3);
113
+        myMap.put("Ashley", 3);
114
+
115
+        int actual = myMap.size();
116
+
117
+        Assert.assertEquals(2, actual);
118
+    }
119
+}

+ 101
- 0
src/test/java/MySetTest.java View File

@@ -0,0 +1,101 @@
1
+import org.junit.Assert;
2
+import org.junit.Test;
3
+
4
+public class MySetTest {
5
+
6
+    @Test
7
+    public void addTest1() {
8
+        MySet mySet = new MySet();
9
+        mySet.add(1);
10
+        mySet.add(2);
11
+        mySet.add(3);
12
+
13
+        int actual = mySet.size();
14
+
15
+        Assert.assertEquals(3, actual);
16
+    }
17
+
18
+    @Test
19
+    public void addTest2() {
20
+        MySet mySet = new MySet();
21
+        mySet.add(1);
22
+        mySet.add(2);
23
+        boolean actual = mySet.add(1);
24
+
25
+        Assert.assertEquals(false, actual);
26
+    }
27
+
28
+    @Test
29
+    public void clearTest() {
30
+        MySet mySet = new MySet();
31
+        mySet.add("Caleb");
32
+        mySet.add("Liam");
33
+        mySet.add("Ashley");
34
+        mySet.clear();
35
+
36
+        int actual = mySet.size();
37
+
38
+        Assert.assertEquals(0, actual);
39
+    }
40
+
41
+    @Test
42
+    public void contains1() {
43
+        MySet mySet = new MySet();
44
+        mySet.add(44.44);
45
+        mySet.add(33.33);
46
+        mySet.add(11.11);
47
+
48
+        boolean actual = mySet.contains(22.22);
49
+
50
+        Assert.assertEquals(false, actual);
51
+    }
52
+
53
+    @Test
54
+    public void contains2() {
55
+        MySet mySet = new MySet();
56
+        mySet.add(44.44);
57
+        mySet.add(33.33);
58
+        mySet.add(11.11);
59
+        mySet.add(22.22);
60
+
61
+        boolean actual = mySet.contains(22.22);
62
+
63
+        Assert.assertEquals(true, actual);
64
+    }
65
+
66
+    @Test
67
+    public void isEmptyTest() {
68
+        MySet mySet = new MySet();
69
+
70
+        boolean actual = mySet.isEmpty();
71
+
72
+        Assert.assertEquals(true, actual);
73
+    }
74
+
75
+    @Test
76
+    public void removeTest() {
77
+        MySet mySet = new MySet();
78
+        mySet.add("Caleb");
79
+        mySet.add("Liam");
80
+        mySet.add("Ashley");
81
+        mySet.remove("Ashley");
82
+
83
+        int actual = mySet.size();
84
+
85
+        Assert.assertEquals(2, actual);
86
+    }
87
+
88
+    @Test
89
+    public void sizeTest() {
90
+        MySet mySet = new MySet();
91
+        mySet.add('C');
92
+        mySet.add('L');
93
+        mySet.add('A');
94
+
95
+        int actual = mySet.size();
96
+
97
+        Assert.assertEquals(3, actual);
98
+    }
99
+
100
+
101
+}