Bläddra i källkod

{first commit}

Jacqueline Joson 6 år sedan
förälder
incheckning
e945640ae6

+ 1
- 0
.idea/.name Visa fil

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

+ 16
- 0
.idea/compiler.xml Visa fil

@@ -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="8" />
14
+    </bytecodeTargetLevel>
15
+  </component>
16
+</project>

+ 13
- 0
.idea/libraries/Maven__junit_junit_4_12.xml Visa fil

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

+ 13
- 0
.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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>

+ 613
- 0
.idea/workspace.xml Visa fil

@@ -0,0 +1,613 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="ada34df4-dfd8-4fb3-8f80-b9a79b2fcc05" name="Default Changelist" comment="">
5
+      <change beforePath="$PROJECT_DIR$/src/main/java/.deleteme" beforeDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/src/test/java/.deleteme" beforeDir="false" />
7
+    </list>
8
+    <ignored path="$PROJECT_DIR$/target/" />
9
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
10
+    <option name="SHOW_DIALOG" value="false" />
11
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
12
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
13
+    <option name="LAST_RESOLUTION" value="IGNORE" />
14
+  </component>
15
+  <component name="FUSProjectUsageTrigger">
16
+    <session id="495800527">
17
+      <usages-collector id="statistics.lifecycle.project">
18
+        <counts>
19
+          <entry key="project.open.time.1" value="1" />
20
+          <entry key="project.opened" value="1" />
21
+        </counts>
22
+      </usages-collector>
23
+      <usages-collector id="statistics.file.extensions.open">
24
+        <counts>
25
+          <entry key="JAVA/" value="2" />
26
+          <entry key="JAVA/MyArrayList" value="1" />
27
+          <entry key="MODULES/mdl-generics" value="1" />
28
+          <entry key="class" value="3" />
29
+          <entry key="iml" value="1" />
30
+          <entry key="java" value="2" />
31
+          <entry key="md" value="1" />
32
+        </counts>
33
+      </usages-collector>
34
+      <usages-collector id="statistics.file.types.open">
35
+        <counts>
36
+          <entry key="CLASS" value="3" />
37
+          <entry key="IDEA_MODULE" value="1" />
38
+          <entry key="JAVA" value="2" />
39
+          <entry key="Markdown" value="1" />
40
+          <entry key="UML" value="4" />
41
+        </counts>
42
+      </usages-collector>
43
+      <usages-collector id="statistics.file.extensions.edit">
44
+        <counts>
45
+          <entry key="java" value="2864" />
46
+          <entry key="txt" value="59" />
47
+        </counts>
48
+      </usages-collector>
49
+      <usages-collector id="statistics.file.types.edit">
50
+        <counts>
51
+          <entry key="JAVA" value="2864" />
52
+          <entry key="PLAIN_TEXT" value="59" />
53
+        </counts>
54
+      </usages-collector>
55
+    </session>
56
+  </component>
57
+  <component name="FileEditorManager">
58
+    <leaf>
59
+      <file pinned="false" current-in-tab="false">
60
+        <entry file="file://$PROJECT_DIR$/README.md">
61
+          <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
62
+            <state split_layout="SPLIT">
63
+              <first_editor />
64
+              <second_editor />
65
+            </state>
66
+          </provider>
67
+        </entry>
68
+      </file>
69
+      <file pinned="false" current-in-tab="true">
70
+        <entry file="file://$PROJECT_DIR$/src/main/java/MyArrayList.java">
71
+          <provider selected="true" editor-type-id="text-editor">
72
+            <state relative-caret-position="345">
73
+              <caret line="48" column="9" lean-forward="true" selection-start-line="48" selection-start-column="9" selection-end-line="48" selection-end-column="9" />
74
+              <folding>
75
+                <element signature="e#67#68#0" expanded="true" />
76
+                <element signature="e#107#108#0" expanded="true" />
77
+                <element signature="e#216#217#0" expanded="true" />
78
+                <element signature="e#250#251#0" expanded="true" />
79
+                <element signature="e#1330#1331#0" expanded="true" />
80
+                <element signature="e#1366#1367#0" expanded="true" />
81
+                <element signature="e#1419#1420#0" expanded="true" />
82
+                <element signature="e#1455#1456#0" expanded="true" />
83
+                <element signature="e#1484#1485#0" expanded="true" />
84
+                <element signature="e#1529#1530#0" expanded="true" />
85
+              </folding>
86
+            </state>
87
+          </provider>
88
+        </entry>
89
+      </file>
90
+      <file pinned="false" current-in-tab="false">
91
+        <entry file="file://$PROJECT_DIR$/src/test/java/MyArrayListTest.java">
92
+          <provider selected="true" editor-type-id="text-editor">
93
+            <state relative-caret-position="704">
94
+              <caret line="49" column="20" lean-forward="true" selection-start-line="49" selection-start-column="20" selection-end-line="49" selection-end-column="20" />
95
+              <folding>
96
+                <element signature="imports" expanded="true" />
97
+                <element signature="e#282#291#0" expanded="true" />
98
+              </folding>
99
+            </state>
100
+          </provider>
101
+        </entry>
102
+      </file>
103
+      <file pinned="false" current-in-tab="false">
104
+        <entry file="uml://JAVA/MyArrayList">
105
+          <provider selected="true" editor-type-id="UmlEditorProvider">
106
+            <state>
107
+              <ID>JAVA</ID>
108
+              <OriginalElement>MyArrayList</OriginalElement>
109
+              <nodes>
110
+                <node x="0.0" y="0.0">MyArrayList</node>
111
+              </nodes>
112
+              <notes />
113
+              <edges />
114
+              <settings layout="Hierarchic Group" zoom="1.0" x="-164.0" y="190.0" />
115
+              <SelectedNodes />
116
+              <Categories>
117
+                <Category>Methods</Category>
118
+                <Category>Constructors</Category>
119
+                <Category>Fields</Category>
120
+                <Category>Inner Classes</Category>
121
+              </Categories>
122
+              <SCOPE>All</SCOPE>
123
+              <VISIBILITY>private</VISIBILITY>
124
+            </state>
125
+          </provider>
126
+        </entry>
127
+      </file>
128
+    </leaf>
129
+  </component>
130
+  <component name="FileTemplateManagerImpl">
131
+    <option name="RECENT_TEMPLATES">
132
+      <list>
133
+        <option value="Class" />
134
+        <option value="JUnit4 Test Class" />
135
+      </list>
136
+    </option>
137
+  </component>
138
+  <component name="Git.Settings">
139
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
140
+  </component>
141
+  <component name="IdeDocumentHistory">
142
+    <option name="CHANGED_PATHS">
143
+      <list>
144
+        <option value="$PROJECT_DIR$/src/main/java/MyArrayList.java" />
145
+        <option value="$PROJECT_DIR$/src/test/java/MyArrayListTest.java" />
146
+      </list>
147
+    </option>
148
+  </component>
149
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
150
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
151
+  <component name="JsGulpfileManager">
152
+    <detection-done>true</detection-done>
153
+    <sorting>DEFINITION_ORDER</sorting>
154
+  </component>
155
+  <component name="ProjectFrameBounds">
156
+    <option name="y" value="23" />
157
+    <option name="width" value="1280" />
158
+    <option name="height" value="712" />
159
+  </component>
160
+  <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
161
+  <component name="ProjectView">
162
+    <navigator proportions="" version="1">
163
+      <foldersAlwaysOnTop value="true" />
164
+    </navigator>
165
+    <panes>
166
+      <pane id="ProjectPane">
167
+        <subPane>
168
+          <expand>
169
+            <path>
170
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
171
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
172
+            </path>
173
+            <path>
174
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
175
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
176
+              <item name="src" type="462c0819:PsiDirectoryNode" />
177
+            </path>
178
+            <path>
179
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
180
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
181
+              <item name="src" type="462c0819:PsiDirectoryNode" />
182
+              <item name="main" type="462c0819:PsiDirectoryNode" />
183
+            </path>
184
+            <path>
185
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
186
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
187
+              <item name="src" type="462c0819:PsiDirectoryNode" />
188
+              <item name="main" type="462c0819:PsiDirectoryNode" />
189
+              <item name="java" type="462c0819:PsiDirectoryNode" />
190
+            </path>
191
+            <path>
192
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
193
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
194
+              <item name="src" type="462c0819:PsiDirectoryNode" />
195
+              <item name="test" type="462c0819:PsiDirectoryNode" />
196
+            </path>
197
+            <path>
198
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
199
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
200
+              <item name="src" type="462c0819:PsiDirectoryNode" />
201
+              <item name="test" type="462c0819:PsiDirectoryNode" />
202
+              <item name="java" type="462c0819:PsiDirectoryNode" />
203
+            </path>
204
+            <path>
205
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
206
+              <item name="External Libraries" type="cb654da1:ExternalLibrariesNode" />
207
+            </path>
208
+          </expand>
209
+          <select />
210
+        </subPane>
211
+      </pane>
212
+      <pane id="PackagesPane" />
213
+      <pane id="Scope" />
214
+    </panes>
215
+  </component>
216
+  <component name="PropertiesComponent">
217
+    <property name="WebServerToolWindowFactoryState" value="false" />
218
+    <property name="aspect.path.notification.shown" value="true" />
219
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1542324893948" />
220
+    <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
221
+    <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrarySuperClass.JUnit4" value="" />
222
+    <property name="last_opened_file_path" value="$PROJECT_DIR$/pom.xml" />
223
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
224
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
225
+    <property name="project.structure.last.edited" value="Modules" />
226
+    <property name="project.structure.proportion" value="0.0" />
227
+    <property name="project.structure.side.proportion" value="0.0" />
228
+    <property name="settings.editor.selected.configurable" value="reference.projectsettings.compiler.javacompiler" />
229
+  </component>
230
+  <component name="RecentsManager">
231
+    <key name="CreateTestDialog.RecentsKey">
232
+      <recent name="" />
233
+    </key>
234
+    <key name="CreateTestDialog.Recents.Supers">
235
+      <recent name="" />
236
+    </key>
237
+  </component>
238
+  <component name="RunDashboard">
239
+    <option name="ruleStates">
240
+      <list>
241
+        <RuleState>
242
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
243
+        </RuleState>
244
+        <RuleState>
245
+          <option name="name" value="StatusDashboardGroupingRule" />
246
+        </RuleState>
247
+      </list>
248
+    </option>
249
+  </component>
250
+  <component name="RunManager" selected="JUnit.MyArrayListTest.clearTest">
251
+    <configuration name="MyArrayListTest.addIntTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
252
+      <module name="generics" />
253
+      <option name="PACKAGE_NAME" value="" />
254
+      <option name="MAIN_CLASS_NAME" value="MyArrayListTest" />
255
+      <option name="METHOD_NAME" value="addIntTest" />
256
+      <option name="TEST_OBJECT" value="method" />
257
+      <method v="2">
258
+        <option name="Make" enabled="true" />
259
+      </method>
260
+    </configuration>
261
+    <configuration name="MyArrayListTest.clearTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
262
+      <module name="generics" />
263
+      <option name="PACKAGE_NAME" value="" />
264
+      <option name="MAIN_CLASS_NAME" value="MyArrayListTest" />
265
+      <option name="METHOD_NAME" value="clearTest" />
266
+      <option name="TEST_OBJECT" value="method" />
267
+      <method v="2">
268
+        <option name="Make" enabled="true" />
269
+      </method>
270
+    </configuration>
271
+    <configuration name="MyArrayListTest.getTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
272
+      <module name="generics" />
273
+      <option name="PACKAGE_NAME" value="" />
274
+      <option name="MAIN_CLASS_NAME" value="MyArrayListTest" />
275
+      <option name="METHOD_NAME" value="getTest" />
276
+      <option name="TEST_OBJECT" value="method" />
277
+      <method v="2">
278
+        <option name="Make" enabled="true" />
279
+      </method>
280
+    </configuration>
281
+    <configuration name="MyArrayListTest.setTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
282
+      <module name="generics" />
283
+      <option name="PACKAGE_NAME" value="" />
284
+      <option name="MAIN_CLASS_NAME" value="MyArrayListTest" />
285
+      <option name="METHOD_NAME" value="setTest" />
286
+      <option name="TEST_OBJECT" value="method" />
287
+      <method v="2">
288
+        <option name="Make" enabled="true" />
289
+      </method>
290
+    </configuration>
291
+    <list>
292
+      <item itemvalue="JUnit.MyArrayListTest.addIntTest" />
293
+      <item itemvalue="JUnit.MyArrayListTest.getTest" />
294
+      <item itemvalue="JUnit.MyArrayListTest.setTest" />
295
+      <item itemvalue="JUnit.MyArrayListTest.clearTest" />
296
+    </list>
297
+    <recent_temporary>
298
+      <list>
299
+        <item itemvalue="JUnit.MyArrayListTest.clearTest" />
300
+        <item itemvalue="JUnit.MyArrayListTest.setTest" />
301
+        <item itemvalue="JUnit.MyArrayListTest.addIntTest" />
302
+        <item itemvalue="JUnit.MyArrayListTest.getTest" />
303
+      </list>
304
+    </recent_temporary>
305
+  </component>
306
+  <component name="SvnConfiguration">
307
+    <configuration />
308
+  </component>
309
+  <component name="TaskManager">
310
+    <task active="true" id="Default" summary="Default task">
311
+      <changelist id="ada34df4-dfd8-4fb3-8f80-b9a79b2fcc05" name="Default Changelist" comment="" />
312
+      <created>1542236797011</created>
313
+      <option name="number" value="Default" />
314
+      <option name="presentableId" value="Default" />
315
+      <updated>1542236797011</updated>
316
+      <workItem from="1542236798436" duration="14202000" />
317
+    </task>
318
+    <servers />
319
+  </component>
320
+  <component name="TestHistory">
321
+    <history-entry file="MyArrayListTest_setTest - 2018.11.15 at 18h 04m 25s.xml">
322
+      <configuration name="MyArrayListTest.setTest" configurationId="JUnit" />
323
+    </history-entry>
324
+    <history-entry file="MyArrayListTest_setTest - 2018.11.15 at 18h 04m 54s.xml">
325
+      <configuration name="MyArrayListTest.setTest" configurationId="JUnit" />
326
+    </history-entry>
327
+    <history-entry file="MyArrayListTest_setTest - 2018.11.15 at 18h 06m 07s.xml">
328
+      <configuration name="MyArrayListTest.setTest" configurationId="JUnit" />
329
+    </history-entry>
330
+    <history-entry file="MyArrayListTest_setTest - 2018.11.15 at 18h 07m 57s.xml">
331
+      <configuration name="MyArrayListTest.setTest" configurationId="JUnit" />
332
+    </history-entry>
333
+    <history-entry file="MyArrayListTest_setTest - 2018.11.15 at 18h 08m 04s.xml">
334
+      <configuration name="MyArrayListTest.setTest" configurationId="JUnit" />
335
+    </history-entry>
336
+    <history-entry file="MyArrayListTest_setTest - 2018.11.15 at 18h 18m 10s.xml">
337
+      <configuration name="MyArrayListTest.setTest" configurationId="JUnit" />
338
+    </history-entry>
339
+    <history-entry file="MyArrayListTest_setTest - 2018.11.15 at 18h 20m 58s.xml">
340
+      <configuration name="MyArrayListTest.setTest" configurationId="JUnit" />
341
+    </history-entry>
342
+    <history-entry file="MyArrayListTest_setTest - 2018.11.15 at 18h 25m 09s.xml">
343
+      <configuration name="MyArrayListTest.setTest" configurationId="JUnit" />
344
+    </history-entry>
345
+    <history-entry file="MyArrayListTest_clearTest - 2018.11.15 at 18h 33m 46s.xml">
346
+      <configuration name="MyArrayListTest.clearTest" configurationId="JUnit" />
347
+    </history-entry>
348
+    <history-entry file="MyArrayListTest_clearTest - 2018.11.15 at 18h 34m 39s.xml">
349
+      <configuration name="MyArrayListTest.clearTest" configurationId="JUnit" />
350
+    </history-entry>
351
+  </component>
352
+  <component name="TimeTrackingManager">
353
+    <option name="totallyTimeSpent" value="14202000" />
354
+  </component>
355
+  <component name="ToolWindowManager">
356
+    <frame x="0" y="23" width="1280" height="712" extended-state="0" />
357
+    <editor active="true" />
358
+    <layout>
359
+      <window_info id="Designer" order="0" />
360
+      <window_info id="UI Designer" order="1" />
361
+      <window_info id="Capture Tool" order="2" />
362
+      <window_info id="Favorites" order="3" side_tool="true" />
363
+      <window_info id="Image Layers" order="4" />
364
+      <window_info content_ui="combo" id="Project" order="5" visible="true" weight="0.24959612" />
365
+      <window_info id="Structure" order="6" side_tool="true" weight="0.25" />
366
+      <window_info anchor="bottom" id="Messages" weight="0.32903227" />
367
+      <window_info anchor="bottom" id="Version Control" order="0" show_stripe_button="false" />
368
+      <window_info anchor="bottom" id="Terminal" order="1" />
369
+      <window_info anchor="bottom" id="Event Log" order="2" side_tool="true" />
370
+      <window_info anchor="bottom" id="Message" order="3" />
371
+      <window_info anchor="bottom" id="Find" order="4" weight="0.32903227" />
372
+      <window_info active="true" anchor="bottom" id="Run" order="5" visible="true" weight="0.32903227" />
373
+      <window_info anchor="bottom" id="Database Changes" order="6" show_stripe_button="false" />
374
+      <window_info anchor="bottom" id="Debug" order="7" weight="0.4" />
375
+      <window_info anchor="bottom" id="Cvs" order="8" weight="0.25" />
376
+      <window_info anchor="bottom" id="Inspection" order="9" weight="0.4" />
377
+      <window_info anchor="bottom" id="TODO" order="10" />
378
+      <window_info anchor="right" id="Capture Analysis" order="0" />
379
+      <window_info anchor="right" id="Theme Preview" order="1" />
380
+      <window_info anchor="right" id="Palette&#9;" order="2" />
381
+      <window_info anchor="right" id="Database" order="3" />
382
+      <window_info anchor="right" id="Maven Projects" order="4" />
383
+      <window_info anchor="right" id="Palette" order="5" />
384
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="6" type="SLIDING" weight="0.4" />
385
+      <window_info anchor="right" id="Ant Build" order="7" weight="0.25" />
386
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="8" weight="0.25" />
387
+    </layout>
388
+  </component>
389
+  <component name="TypeScriptGeneratedFilesManager">
390
+    <option name="version" value="1" />
391
+  </component>
392
+  <component name="VcsContentAnnotationSettings">
393
+    <option name="myLimit" value="2678400000" />
394
+  </component>
395
+  <component name="editorHistoryManager">
396
+    <entry file="file://$PROJECT_DIR$/generics.iml">
397
+      <provider selected="true" editor-type-id="text-editor" />
398
+    </entry>
399
+    <entry file="uml://MODULES/mdl-generics">
400
+      <provider selected="true" editor-type-id="UmlEditorProvider">
401
+        <state>
402
+          <ID>MODULES</ID>
403
+          <OriginalElement>mdl-generics</OriginalElement>
404
+          <nodes>
405
+            <node x="" y="">mdl-generics</node>
406
+          </nodes>
407
+          <notes />
408
+          <edges />
409
+          <settings layout="Hierarchic Group" zoom="1.0" x="69.5" y="14.5" />
410
+          <SelectedNodes />
411
+          <Categories />
412
+        </state>
413
+      </provider>
414
+    </entry>
415
+    <entry file="uml://JAVA/">
416
+      <provider selected="true" editor-type-id="UmlEditorProvider">
417
+        <state>
418
+          <ID>JAVA</ID>
419
+          <OriginalElement />
420
+          <nodes>
421
+            <node x="" y="">com</node>
422
+            <node x="" y="">netscape</node>
423
+            <node x="" y="">junit</node>
424
+            <node x="" y="">oracle</node>
425
+            <node x="" y="">org</node>
426
+            <node x="" y="">resources</node>
427
+            <node x="" y="">toolbarButtonGraphics</node>
428
+            <node x="" y="">MyArrayList</node>
429
+            <node x="" y="">sun</node>
430
+            <node x="" y="">META-INF</node>
431
+            <node x="" y="">jdk</node>
432
+            <node x="" y="">apple</node>
433
+            <node x="" y="">groovyjarjarasm</node>
434
+            <node x="" y="">java</node>
435
+            <node x="" y="">groovy</node>
436
+            <node x="" y="">javax</node>
437
+            <node x="" y="">groovyjarjarcommonscli</node>
438
+            <node x="" y="">javafx</node>
439
+            <node x="" y="">groovyjarjarantlr</node>
440
+          </nodes>
441
+          <notes />
442
+          <edges />
443
+          <settings layout="Hierarchic Group" zoom="1.0" x="253.5" y="264.5" />
444
+          <SelectedNodes />
445
+          <Categories>
446
+            <Category>Constructors</Category>
447
+            <Category>Methods</Category>
448
+            <Category>Properties</Category>
449
+            <Category>Inner Classes</Category>
450
+          </Categories>
451
+          <SCOPE>All</SCOPE>
452
+          <VISIBILITY>private</VISIBILITY>
453
+        </state>
454
+      </provider>
455
+    </entry>
456
+    <entry file="file://$PROJECT_DIR$/README.md">
457
+      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
458
+        <state split_layout="SPLIT">
459
+          <first_editor />
460
+          <second_editor />
461
+        </state>
462
+      </provider>
463
+    </entry>
464
+    <entry file="uml://JAVA/MyArrayList">
465
+      <provider selected="true" editor-type-id="UmlEditorProvider">
466
+        <state>
467
+          <ID>JAVA</ID>
468
+          <OriginalElement>MyArrayList</OriginalElement>
469
+          <nodes>
470
+            <node x="0.0" y="0.0">MyArrayList</node>
471
+          </nodes>
472
+          <notes />
473
+          <edges />
474
+          <settings layout="Hierarchic Group" zoom="1.0" x="-164.0" y="190.0" />
475
+          <SelectedNodes />
476
+          <Categories>
477
+            <Category>Methods</Category>
478
+            <Category>Constructors</Category>
479
+            <Category>Fields</Category>
480
+            <Category>Inner Classes</Category>
481
+          </Categories>
482
+          <SCOPE>All</SCOPE>
483
+          <VISIBILITY>private</VISIBILITY>
484
+        </state>
485
+      </provider>
486
+    </entry>
487
+    <entry file="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12.jar!/org/junit/internal/runners/model/ReflectiveCallable.class">
488
+      <provider selected="true" editor-type-id="text-editor">
489
+        <state relative-caret-position="221">
490
+          <caret line="16" selection-start-line="16" selection-end-line="16" />
491
+        </state>
492
+      </provider>
493
+    </entry>
494
+    <entry file="file://$PROJECT_DIR$/src/test/java/MyArrayListTest.java">
495
+      <provider selected="true" editor-type-id="text-editor">
496
+        <state relative-caret-position="704">
497
+          <caret line="49" column="20" lean-forward="true" selection-start-line="49" selection-start-column="20" selection-end-line="49" selection-end-column="20" />
498
+          <folding>
499
+            <element signature="imports" expanded="true" />
500
+            <element signature="e#282#291#0" expanded="true" />
501
+          </folding>
502
+        </state>
503
+      </provider>
504
+    </entry>
505
+    <entry file="file://$PROJECT_DIR$/src/main/java/MyArrayList.java">
506
+      <provider selected="true" editor-type-id="text-editor">
507
+        <state relative-caret-position="345">
508
+          <caret line="48" column="9" lean-forward="true" selection-start-line="48" selection-start-column="9" selection-end-line="48" selection-end-column="9" />
509
+          <folding>
510
+            <element signature="e#67#68#0" expanded="true" />
511
+            <element signature="e#107#108#0" expanded="true" />
512
+            <element signature="e#216#217#0" expanded="true" />
513
+            <element signature="e#250#251#0" expanded="true" />
514
+            <element signature="e#1330#1331#0" expanded="true" />
515
+            <element signature="e#1366#1367#0" expanded="true" />
516
+            <element signature="e#1419#1420#0" expanded="true" />
517
+            <element signature="e#1455#1456#0" expanded="true" />
518
+            <element signature="e#1484#1485#0" expanded="true" />
519
+            <element signature="e#1529#1530#0" expanded="true" />
520
+          </folding>
521
+        </state>
522
+      </provider>
523
+    </entry>
524
+  </component>
525
+  <component name="masterDetails">
526
+    <states>
527
+      <state key="ArtifactsStructureConfigurable.UI">
528
+        <settings>
529
+          <artifact-editor />
530
+          <splitter-proportions>
531
+            <option name="proportions">
532
+              <list>
533
+                <option value="0.2" />
534
+              </list>
535
+            </option>
536
+          </splitter-proportions>
537
+        </settings>
538
+      </state>
539
+      <state key="FacetStructureConfigurable.UI">
540
+        <settings>
541
+          <last-edited>No facets are configured</last-edited>
542
+          <splitter-proportions>
543
+            <option name="proportions">
544
+              <list>
545
+                <option value="0.2" />
546
+              </list>
547
+            </option>
548
+          </splitter-proportions>
549
+        </settings>
550
+      </state>
551
+      <state key="GlobalLibrariesConfigurable.UI">
552
+        <settings>
553
+          <splitter-proportions>
554
+            <option name="proportions">
555
+              <list>
556
+                <option value="0.2" />
557
+              </list>
558
+            </option>
559
+          </splitter-proportions>
560
+        </settings>
561
+      </state>
562
+      <state key="JdkListConfigurable.UI">
563
+        <settings>
564
+          <last-edited>1.8</last-edited>
565
+          <splitter-proportions>
566
+            <option name="proportions">
567
+              <list>
568
+                <option value="0.2" />
569
+              </list>
570
+            </option>
571
+          </splitter-proportions>
572
+        </settings>
573
+      </state>
574
+      <state key="ModuleStructureConfigurable.UI">
575
+        <settings>
576
+          <last-edited>generics</last-edited>
577
+          <splitter-proportions>
578
+            <option name="proportions">
579
+              <list>
580
+                <option value="0.2" />
581
+                <option value="0.6" />
582
+              </list>
583
+            </option>
584
+          </splitter-proportions>
585
+        </settings>
586
+      </state>
587
+      <state key="ProjectJDKs.UI">
588
+        <settings>
589
+          <last-edited>1.8</last-edited>
590
+          <splitter-proportions>
591
+            <option name="proportions">
592
+              <list>
593
+                <option value="0.2" />
594
+              </list>
595
+            </option>
596
+          </splitter-proportions>
597
+        </settings>
598
+      </state>
599
+      <state key="ProjectLibrariesConfigurable.UI">
600
+        <settings>
601
+          <last-edited>Maven: junit:junit:4.12</last-edited>
602
+          <splitter-proportions>
603
+            <option name="proportions">
604
+              <list>
605
+                <option value="0.2" />
606
+              </list>
607
+            </option>
608
+          </splitter-proportions>
609
+        </settings>
610
+      </state>
611
+    </states>
612
+  </component>
613
+</project>

+ 16
- 0
generics.iml Visa fil

@@ -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_8">
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.12" level="project" />
14
+    <orderEntry type="library" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
15
+  </component>
16
+</module>

+ 0
- 0
src/main/java/.deleteme Visa fil


+ 68
- 0
src/main/java/MyArrayList.java Visa fil

@@ -0,0 +1,68 @@
1
+public class MyArrayList<T> {
2
+
3
+    public T [] theArray;
4
+    int index;
5
+
6
+    public MyArrayList(T[] theArray) {
7
+        this.theArray = theArray;
8
+    }
9
+
10
+    public MyArrayList() {}
11
+
12
+    public MyArrayList(int index) {
13
+        this.index = index;
14
+    }
15
+
16
+        public void add(T elementToAdd){
17
+            T [] temp = (T []) new Object[theArray.length+1];
18
+            for (int i = 0; i < theArray.length; i++) {
19
+                temp[i] = theArray[i];
20
+            }
21
+            temp[theArray.length] = elementToAdd;
22
+            theArray = temp;
23
+        }
24
+
25
+        public T get (int index){
26
+            T valueToGet = null;
27
+            for (int i = 0; i < theArray.length; i++) {
28
+                if (i == index) {
29
+                    valueToGet = theArray[i];
30
+                }
31
+            }
32
+            return valueToGet;
33
+        }
34
+
35
+        public T [] set(int index, T elementToSet){
36
+//            T [] newArray = (T[]) new Object[theArray.length];
37
+            for (int i = 0; i < theArray.length; i++) {
38
+                    if (i == index) {
39
+                        theArray[i] = elementToSet;
40
+                }
41
+            }
42
+            return theArray;
43
+        }
44
+
45
+        public void clear () {
46
+            for (int i = 0; i < theArray.length; i++) {
47
+                theArray[i] = null;
48
+            }
49
+        }
50
+
51
+        public boolean isEmpty () {
52
+            return false;
53
+        }
54
+
55
+        public boolean contains (T elementToCheck){
56
+            return false;
57
+        }
58
+
59
+        public int size() {
60
+           return theArray.length;
61
+        }
62
+//
63
+//        @Override
64
+//        public void add( int index, T elementToAdd){
65
+//
66
+//        }
67
+
68
+}

+ 0
- 0
src/test/java/.deleteme Visa fil


+ 78
- 0
src/test/java/MyArrayListTest.java Visa fil

@@ -0,0 +1,78 @@
1
+import org.junit.Assert;
2
+import org.junit.Test;
3
+
4
+import static org.junit.Assert.*;
5
+
6
+public class MyArrayListTest {
7
+
8
+    @Test
9
+    public void addIntTest() {
10
+        //given
11
+        Integer [] testIntArray = {1, 2, 3, 4, 5};
12
+        MyArrayList<Integer> myarrayList = new MyArrayList<Integer>(testIntArray);
13
+        int elementToAdd = 6;
14
+        int expected = 6;
15
+        //when
16
+        myarrayList.add(elementToAdd);
17
+        int actual = myarrayList.size();
18
+        //then
19
+        Assert.assertEquals(expected,actual);
20
+    }
21
+
22
+    @Test
23
+    public void getTest() {
24
+        //given
25
+        String [] testStringArray = {"I", "went", "to", "the", "bookstore"};
26
+        MyArrayList<String> myArrayList = new MyArrayList<>(testStringArray);
27
+        String expected = "to";
28
+        //when
29
+        String actual = myArrayList.get(2);
30
+        //then
31
+        Assert.assertEquals(expected,actual);
32
+    }
33
+
34
+    @Test
35
+    public void setTest() {
36
+        //given
37
+        Integer [] testIntegerArray = {1, 2, 3, 4, 5, 10};
38
+        MyArrayList<Integer> myArrayList = new MyArrayList<>(testIntegerArray);
39
+        Integer [] expected = {1, 2, 3, 4, 5, 6};
40
+        //when
41
+        Integer [] actual = myArrayList.set(5, 6);
42
+        //then
43
+        Assert.assertEquals(expected,actual);
44
+    }
45
+
46
+    @Test
47
+    public void clearTest() {
48
+        //given
49
+        String [] testStringArr = {"I", "am", "making", "some", "progress"};
50
+        MyArrayList<String> myArrayList = new MyArrayList<>(testStringArr);
51
+        //when
52
+        myArrayList.clear();
53
+        //then
54
+        Assert.assertNull(testStringArr[1]);
55
+    }
56
+
57
+    @Test
58
+    public void isEmptyTest() {
59
+        //given
60
+
61
+        //when
62
+
63
+        //then
64
+    }
65
+
66
+    @Test
67
+    public void containsTest() {
68
+        //given
69
+
70
+        //when
71
+
72
+        //then
73
+    }
74
+
75
+    @Test
76
+    public void addOverrideTest() {
77
+    }
78
+}