Eric Foster 6 lat temu
rodzic
commit
cd9f08fe06

+ 1
- 0
.idea/.name Wyświetl plik

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

+ 16
- 0
.idea/compiler.xml Wyświetl plik

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

+ 13
- 0
.idea/libraries/Maven__junit_junit_4_12.xml Wyświetl plik

@@ -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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -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 Wyświetl plik

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

+ 575
- 0
.idea/workspace.xml Wyświetl plik

@@ -0,0 +1,575 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="8fd93893-0b89-4593-8736-87b4b19bf1b4" name="Default" comment="">
5
+      <change afterPath="$PROJECT_DIR$/.idea/compiler.xml" afterDir="false" />
6
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__junit_junit_4_12.xml" afterDir="false" />
7
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml" afterDir="false" />
8
+      <change afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
9
+      <change afterPath="$PROJECT_DIR$/.idea/modules.xml" afterDir="false" />
10
+      <change afterPath="$PROJECT_DIR$/.idea/vcs.xml" afterDir="false" />
11
+      <change afterPath="$PROJECT_DIR$/generics.iml" afterDir="false" />
12
+      <change afterPath="$PROJECT_DIR$/src/main/java/MyArrayList.java" afterDir="false" />
13
+      <change afterPath="$PROJECT_DIR$/src/test/java/MyArrayListTest.java" afterDir="false" />
14
+      <change beforePath="$PROJECT_DIR$/src/main/java/.deleteme" beforeDir="false" />
15
+      <change beforePath="$PROJECT_DIR$/src/test/java/.deleteme" beforeDir="false" />
16
+    </list>
17
+    <ignored path="$PROJECT_DIR$/target/" />
18
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
19
+    <option name="TRACKING_ENABLED" value="true" />
20
+    <option name="SHOW_DIALOG" value="false" />
21
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
22
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
23
+    <option name="LAST_RESOLUTION" value="IGNORE" />
24
+  </component>
25
+  <component name="FileEditorManager">
26
+    <splitter split-orientation="horizontal" split-proportion="0.38634765">
27
+      <split-first>
28
+        <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
29
+          <file leaf-file-name="MyArrayList.java" pinned="false" current-in-tab="false">
30
+            <entry file="file://$PROJECT_DIR$/src/main/java/MyArrayList.java">
31
+              <provider selected="true" editor-type-id="text-editor">
32
+                <state relative-caret-position="240">
33
+                  <caret line="16" column="26" selection-start-line="16" selection-start-column="26" selection-end-line="16" selection-end-column="26" />
34
+                  <folding>
35
+                    <element signature="e#237#238#0" expanded="true" />
36
+                    <element signature="e#274#275#0" expanded="true" />
37
+                    <element signature="e#390#391#0" expanded="true" />
38
+                    <element signature="e#417#418#0" expanded="true" />
39
+                    <element signature="e#516#517#0" expanded="true" />
40
+                    <element signature="e#543#544#0" expanded="true" />
41
+                  </folding>
42
+                </state>
43
+              </provider>
44
+            </entry>
45
+          </file>
46
+          <file leaf-file-name="ArrayList.java" pinned="false" current-in-tab="true">
47
+            <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/src.zip!/java/util/ArrayList.java">
48
+              <provider selected="true" editor-type-id="text-editor">
49
+                <state relative-caret-position="-1082">
50
+                  <caret line="134" column="25" lean-forward="true" selection-start-line="134" selection-start-column="25" selection-end-line="134" selection-end-column="25" />
51
+                </state>
52
+              </provider>
53
+            </entry>
54
+          </file>
55
+        </leaf>
56
+      </split-first>
57
+      <split-second>
58
+        <leaf>
59
+          <file leaf-file-name="MyArrayListTest.java" pinned="false" current-in-tab="true">
60
+            <entry file="file://$PROJECT_DIR$/src/test/java/MyArrayListTest.java">
61
+              <provider selected="true" editor-type-id="text-editor">
62
+                <state relative-caret-position="113">
63
+                  <caret line="46" column="13" selection-start-line="46" selection-start-column="13" selection-end-line="46" selection-end-column="13" />
64
+                  <folding>
65
+                    <element signature="imports" expanded="true" />
66
+                    <element signature="e#759#760#0" expanded="true" />
67
+                    <element signature="e#829#830#0" expanded="true" />
68
+                    <element signature="e#869#870#0" expanded="true" />
69
+                    <element signature="e#939#940#0" expanded="true" />
70
+                    <element signature="e#981#982#0" expanded="true" />
71
+                    <element signature="e#1051#1052#0" expanded="true" />
72
+                    <element signature="e#1094#1095#0" expanded="true" />
73
+                    <element signature="e#1164#1165#0" expanded="true" />
74
+                    <element signature="e#1207#1208#0" expanded="true" />
75
+                    <element signature="e#1277#1278#0" expanded="true" />
76
+                  </folding>
77
+                </state>
78
+              </provider>
79
+            </entry>
80
+          </file>
81
+        </leaf>
82
+      </split-second>
83
+    </splitter>
84
+  </component>
85
+  <component name="FileTemplateManagerImpl">
86
+    <option name="RECENT_TEMPLATES">
87
+      <list>
88
+        <option value="Class" />
89
+      </list>
90
+    </option>
91
+  </component>
92
+  <component name="FindInProjectRecents">
93
+    <findStrings>
94
+      <find>get</find>
95
+      <find>remove</find>
96
+    </findStrings>
97
+  </component>
98
+  <component name="Git.Settings">
99
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
100
+  </component>
101
+  <component name="IdeDocumentHistory">
102
+    <option name="CHANGED_PATHS">
103
+      <list>
104
+        <option value="$USER_HOME$/Desktop/ReadMe.md" />
105
+        <option value="$PROJECT_DIR$/src/main/java/MyArrayList.java" />
106
+        <option value="$PROJECT_DIR$/src/test/java/MyArrayListTest.java" />
107
+      </list>
108
+    </option>
109
+  </component>
110
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
111
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
112
+  <component name="JsGulpfileManager">
113
+    <detection-done>true</detection-done>
114
+    <sorting>DEFINITION_ORDER</sorting>
115
+  </component>
116
+  <component name="NodePackageJsonFileManager">
117
+    <packageJsonPaths />
118
+  </component>
119
+  <component name="ProjectFrameBounds">
120
+    <option name="y" value="23" />
121
+    <option name="width" value="1280" />
122
+    <option name="height" value="713" />
123
+  </component>
124
+  <component name="ProjectLevelVcsManager" settingsEditedManually="true">
125
+    <ConfirmationsSetting value="2" id="Add" />
126
+  </component>
127
+  <component name="ProjectView">
128
+    <navigator proportions="" version="1">
129
+      <foldersAlwaysOnTop value="true" />
130
+    </navigator>
131
+    <panes>
132
+      <pane id="PackagesPane" />
133
+      <pane id="ProjectPane">
134
+        <subPane>
135
+          <expand>
136
+            <path>
137
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
138
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
139
+            </path>
140
+            <path>
141
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
142
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
143
+              <item name=".idea" type="462c0819:PsiDirectoryNode" />
144
+            </path>
145
+            <path>
146
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
147
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
148
+              <item name="src" type="462c0819:PsiDirectoryNode" />
149
+            </path>
150
+            <path>
151
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
152
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
153
+              <item name="src" type="462c0819:PsiDirectoryNode" />
154
+              <item name="main" type="462c0819:PsiDirectoryNode" />
155
+            </path>
156
+            <path>
157
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
158
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
159
+              <item name="src" type="462c0819:PsiDirectoryNode" />
160
+              <item name="main" type="462c0819:PsiDirectoryNode" />
161
+              <item name="java" type="462c0819:PsiDirectoryNode" />
162
+            </path>
163
+            <path>
164
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
165
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
166
+              <item name="src" type="462c0819:PsiDirectoryNode" />
167
+              <item name="test" type="462c0819:PsiDirectoryNode" />
168
+            </path>
169
+            <path>
170
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
171
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
172
+              <item name="src" type="462c0819:PsiDirectoryNode" />
173
+              <item name="test" type="462c0819:PsiDirectoryNode" />
174
+              <item name="java" type="462c0819:PsiDirectoryNode" />
175
+            </path>
176
+          </expand>
177
+          <select />
178
+        </subPane>
179
+      </pane>
180
+      <pane id="Scope" />
181
+      <pane id="AndroidView" />
182
+    </panes>
183
+  </component>
184
+  <component name="PropertiesComponent">
185
+    <property name="WebServerToolWindowFactoryState" value="false" />
186
+    <property name="aspect.path.notification.shown" value="true" />
187
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
188
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
189
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
190
+    <property name="project.structure.last.edited" value="Project" />
191
+    <property name="project.structure.proportion" value="0.0" />
192
+    <property name="project.structure.side.proportion" value="0.0" />
193
+    <property name="settings.editor.selected.configurable" value="preferences.lookFeel" />
194
+  </component>
195
+  <component name="RunDashboard">
196
+    <option name="ruleStates">
197
+      <list>
198
+        <RuleState>
199
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
200
+        </RuleState>
201
+        <RuleState>
202
+          <option name="name" value="StatusDashboardGroupingRule" />
203
+        </RuleState>
204
+      </list>
205
+    </option>
206
+  </component>
207
+  <component name="RunManager" selected="JUnit.MyArrayListTest.testCapacity">
208
+    <configuration default="true" type="Application" factoryName="Application">
209
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
210
+    </configuration>
211
+    <configuration name="MyArrayListTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
212
+      <module name="generics" />
213
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
214
+      <option name="ALTERNATIVE_JRE_PATH" />
215
+      <option name="PACKAGE_NAME" value="" />
216
+      <option name="MAIN_CLASS_NAME" value="MyArrayListTest" />
217
+      <option name="METHOD_NAME" />
218
+      <option name="TEST_OBJECT" value="class" />
219
+      <option name="VM_PARAMETERS" value="-ea" />
220
+      <option name="PARAMETERS" />
221
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
222
+      <option name="PASS_PARENT_ENVS" value="true" />
223
+      <option name="TEST_SEARCH_SCOPE">
224
+        <value defaultName="singleModule" />
225
+      </option>
226
+      <patterns />
227
+    </configuration>
228
+    <configuration name="MyArrayListTest.addTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
229
+      <module name="generics" />
230
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
231
+      <option name="ALTERNATIVE_JRE_PATH" />
232
+      <option name="PACKAGE_NAME" value="" />
233
+      <option name="MAIN_CLASS_NAME" value="MyArrayListTest" />
234
+      <option name="METHOD_NAME" value="addTest" />
235
+      <option name="TEST_OBJECT" value="method" />
236
+      <option name="VM_PARAMETERS" value="-ea" />
237
+      <option name="PARAMETERS" />
238
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
239
+      <option name="PASS_PARENT_ENVS" value="true" />
240
+      <option name="TEST_SEARCH_SCOPE">
241
+        <value defaultName="singleModule" />
242
+      </option>
243
+      <patterns />
244
+    </configuration>
245
+    <configuration name="MyArrayListTest.removeIndexTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
246
+      <module name="generics" />
247
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
248
+      <option name="ALTERNATIVE_JRE_PATH" />
249
+      <option name="PACKAGE_NAME" value="" />
250
+      <option name="MAIN_CLASS_NAME" value="MyArrayListTest" />
251
+      <option name="METHOD_NAME" value="removeIndexTest" />
252
+      <option name="TEST_OBJECT" value="method" />
253
+      <option name="VM_PARAMETERS" value="-ea" />
254
+      <option name="PARAMETERS" />
255
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
256
+      <option name="PASS_PARENT_ENVS" value="true" />
257
+      <option name="TEST_SEARCH_SCOPE">
258
+        <value defaultName="singleModule" />
259
+      </option>
260
+      <patterns />
261
+    </configuration>
262
+    <configuration name="MyArrayListTest.testCapacity" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
263
+      <module name="generics" />
264
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
265
+      <option name="ALTERNATIVE_JRE_PATH" />
266
+      <option name="PACKAGE_NAME" value="" />
267
+      <option name="MAIN_CLASS_NAME" value="MyArrayListTest" />
268
+      <option name="METHOD_NAME" value="testCapacity" />
269
+      <option name="TEST_OBJECT" value="method" />
270
+      <option name="VM_PARAMETERS" value="-ea" />
271
+      <option name="PARAMETERS" />
272
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
273
+      <option name="PASS_PARENT_ENVS" value="true" />
274
+      <option name="TEST_SEARCH_SCOPE">
275
+        <value defaultName="singleModule" />
276
+      </option>
277
+      <patterns />
278
+    </configuration>
279
+    <configuration default="true" type="JUnit" factoryName="JUnit">
280
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
281
+      <option name="ALTERNATIVE_JRE_PATH" />
282
+      <option name="PACKAGE_NAME" />
283
+      <option name="MAIN_CLASS_NAME" />
284
+      <option name="METHOD_NAME" />
285
+      <option name="TEST_OBJECT" value="class" />
286
+      <option name="VM_PARAMETERS" value="-ea" />
287
+      <option name="PARAMETERS" />
288
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
289
+      <option name="PASS_PARENT_ENVS" value="true" />
290
+      <option name="TEST_SEARCH_SCOPE">
291
+        <value defaultName="singleModule" />
292
+      </option>
293
+      <patterns />
294
+    </configuration>
295
+    <configuration default="true" type="TestNG" factoryName="TestNG">
296
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
297
+      <option name="ALTERNATIVE_JRE_PATH" />
298
+      <option name="SUITE_NAME" />
299
+      <option name="PACKAGE_NAME" />
300
+      <option name="MAIN_CLASS_NAME" />
301
+      <option name="METHOD_NAME" />
302
+      <option name="GROUP_NAME" />
303
+      <option name="TEST_OBJECT" value="CLASS" />
304
+      <option name="VM_PARAMETERS" value="-ea" />
305
+      <option name="PARAMETERS" />
306
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
307
+      <option name="OUTPUT_DIRECTORY" />
308
+      <option name="PASS_PARENT_ENVS" value="true" />
309
+      <option name="TEST_SEARCH_SCOPE">
310
+        <value defaultName="singleModule" />
311
+      </option>
312
+      <option name="USE_DEFAULT_REPORTERS" value="false" />
313
+      <option name="PROPERTIES_FILE" />
314
+      <properties />
315
+      <listeners />
316
+    </configuration>
317
+    <list>
318
+      <item itemvalue="JUnit.MyArrayListTest.addTest" />
319
+      <item itemvalue="JUnit.MyArrayListTest" />
320
+      <item itemvalue="JUnit.MyArrayListTest.removeIndexTest" />
321
+      <item itemvalue="JUnit.MyArrayListTest.testCapacity" />
322
+    </list>
323
+    <recent_temporary>
324
+      <list>
325
+        <item itemvalue="JUnit.MyArrayListTest.testCapacity" />
326
+        <item itemvalue="JUnit.MyArrayListTest.removeIndexTest" />
327
+        <item itemvalue="JUnit.MyArrayListTest" />
328
+        <item itemvalue="JUnit.MyArrayListTest.addTest" />
329
+      </list>
330
+    </recent_temporary>
331
+  </component>
332
+  <component name="SvnConfiguration">
333
+    <configuration />
334
+  </component>
335
+  <component name="TaskManager">
336
+    <task active="true" id="Default" summary="Default task">
337
+      <changelist id="8fd93893-0b89-4593-8736-87b4b19bf1b4" name="Default" comment="" />
338
+      <created>1530276630401</created>
339
+      <option name="number" value="Default" />
340
+      <option name="presentableId" value="Default" />
341
+      <updated>1530276630401</updated>
342
+      <workItem from="1530276631783" duration="3518000" />
343
+      <workItem from="1530287809954" duration="9737000" />
344
+    </task>
345
+    <servers />
346
+  </component>
347
+  <component name="TestHistory">
348
+    <history-entry file="MyArrayListTest_addTest - 2018.06.29 at 14h 34m 51s.xml">
349
+      <configuration name="MyArrayListTest.addTest" configurationId="JUnit" />
350
+    </history-entry>
351
+    <history-entry file="MyArrayListTest - 2018.06.29 at 14h 49m 51s.xml">
352
+      <configuration name="MyArrayListTest" configurationId="JUnit" />
353
+    </history-entry>
354
+    <history-entry file="MyArrayListTest - 2018.06.29 at 14h 50m 38s.xml">
355
+      <configuration name="MyArrayListTest" configurationId="JUnit" />
356
+    </history-entry>
357
+    <history-entry file="MyArrayListTest_removeIndexTest - 2018.06.29 at 15h 12m 40s.xml">
358
+      <configuration name="MyArrayListTest.removeIndexTest" configurationId="JUnit" />
359
+    </history-entry>
360
+    <history-entry file="MyArrayListTest - 2018.06.29 at 15h 14m 39s.xml">
361
+      <configuration name="MyArrayListTest" configurationId="JUnit" />
362
+    </history-entry>
363
+    <history-entry file="MyArrayListTest_removeIndexTest - 2018.06.29 at 15h 15m 02s.xml">
364
+      <configuration name="MyArrayListTest.removeIndexTest" configurationId="JUnit" />
365
+    </history-entry>
366
+    <history-entry file="MyArrayListTest_removeIndexTest - 2018.06.29 at 15h 15m 16s.xml">
367
+      <configuration name="MyArrayListTest.removeIndexTest" configurationId="JUnit" />
368
+    </history-entry>
369
+    <history-entry file="MyArrayListTest_testCapacity - 2018.06.29 at 16h 37m 13s.xml">
370
+      <configuration name="MyArrayListTest.testCapacity" configurationId="JUnit" />
371
+    </history-entry>
372
+  </component>
373
+  <component name="TimeTrackingManager">
374
+    <option name="totallyTimeSpent" value="13255000" />
375
+  </component>
376
+  <component name="ToolWindowManager">
377
+    <frame x="0" y="23" width="1280" height="713" extended-state="0" />
378
+    <editor active="true" />
379
+    <layout>
380
+      <window_info anchor="right" id="Palette" order="3" />
381
+      <window_info anchor="bottom" id="TODO" order="6" />
382
+      <window_info anchor="bottom" id="Messages" weight="0.32978722" />
383
+      <window_info anchor="right" id="Palette&#9;" order="3" />
384
+      <window_info id="Image Layers" order="2" />
385
+      <window_info anchor="right" id="Capture Analysis" order="3" />
386
+      <window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
387
+      <window_info anchor="right" id="Maven Projects" order="3" />
388
+      <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
389
+      <window_info anchor="bottom" id="Version Control" order="7" />
390
+      <window_info anchor="bottom" id="Run" order="2" weight="0.48513302" />
391
+      <window_info anchor="bottom" id="Terminal" order="7" />
392
+      <window_info id="Capture Tool" order="2" />
393
+      <window_info id="Designer" order="2" />
394
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.3578125" />
395
+      <window_info anchor="right" id="Database" order="3" />
396
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
397
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
398
+      <window_info id="UI Designer" order="2" />
399
+      <window_info anchor="right" id="Theme Preview" order="3" />
400
+      <window_info id="Favorites" order="2" side_tool="true" />
401
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
402
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
403
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
404
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
405
+      <window_info anchor="bottom" id="Message" order="0" />
406
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
407
+      <window_info anchor="bottom" id="Find" order="1" />
408
+    </layout>
409
+  </component>
410
+  <component name="TypeScriptGeneratedFilesManager">
411
+    <option name="version" value="1" />
412
+  </component>
413
+  <component name="VcsContentAnnotationSettings">
414
+    <option name="myLimit" value="2678400000" />
415
+  </component>
416
+  <component name="XDebuggerManager">
417
+    <breakpoint-manager>
418
+      <option name="time" value="2" />
419
+    </breakpoint-manager>
420
+  </component>
421
+  <component name="editorHistoryManager">
422
+    <entry file="file://$PROJECT_DIR$/src/test/java/MyArrayListTest.java">
423
+      <provider selected="true" editor-type-id="text-editor">
424
+        <state relative-caret-position="45">
425
+          <caret line="3" selection-start-line="3" selection-end-line="3" />
426
+          <folding>
427
+            <element signature="imports" expanded="true" />
428
+            <element signature="e#759#760#0" expanded="true" />
429
+            <element signature="e#829#830#0" expanded="true" />
430
+            <element signature="e#869#870#0" expanded="true" />
431
+            <element signature="e#939#940#0" expanded="true" />
432
+            <element signature="e#981#982#0" expanded="true" />
433
+            <element signature="e#1051#1052#0" expanded="true" />
434
+            <element signature="e#1094#1095#0" expanded="true" />
435
+            <element signature="e#1164#1165#0" expanded="true" />
436
+            <element signature="e#1207#1208#0" expanded="true" />
437
+            <element signature="e#1277#1278#0" expanded="true" />
438
+          </folding>
439
+        </state>
440
+      </provider>
441
+    </entry>
442
+    <entry file="file://$PROJECT_DIR$/README.md">
443
+      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
444
+        <state split_layout="SPLIT">
445
+          <first_editor relative-caret-position="435">
446
+            <caret line="29" selection-start-line="29" selection-end-line="29" selection-end-column="2" />
447
+          </first_editor>
448
+          <second_editor />
449
+        </state>
450
+      </provider>
451
+    </entry>
452
+    <entry file="file://$USER_HOME$/Desktop/ReadMe.md">
453
+      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
454
+        <state split_layout="SPLIT">
455
+          <first_editor relative-caret-position="480">
456
+            <caret line="32" column="40" selection-start-line="32" selection-start-column="40" selection-end-line="32" selection-end-column="40" />
457
+          </first_editor>
458
+          <second_editor />
459
+        </state>
460
+      </provider>
461
+    </entry>
462
+    <entry file="file://$USER_HOME$/Desktop/ReadMe.md">
463
+      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
464
+        <state split_layout="SPLIT">
465
+          <first_editor relative-caret-position="330">
466
+            <caret line="22" column="14" lean-forward="true" selection-start-line="22" selection-start-column="14" selection-end-line="22" selection-end-column="14" />
467
+          </first_editor>
468
+          <second_editor />
469
+        </state>
470
+      </provider>
471
+    </entry>
472
+    <entry file="file://$PROJECT_DIR$/README.md">
473
+      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
474
+        <state split_layout="SPLIT">
475
+          <first_editor relative-caret-position="435">
476
+            <caret line="29" selection-start-line="29" selection-end-line="29" selection-end-column="2" />
477
+          </first_editor>
478
+          <second_editor />
479
+        </state>
480
+      </provider>
481
+    </entry>
482
+    <entry file="file://$PROJECT_DIR$/src/main/java/MyArrayList.java">
483
+      <provider selected="true" editor-type-id="text-editor">
484
+        <state relative-caret-position="240">
485
+          <caret line="16" column="26" selection-start-line="16" selection-start-column="26" selection-end-line="16" selection-end-column="26" />
486
+          <folding>
487
+            <element signature="e#237#238#0" expanded="true" />
488
+            <element signature="e#274#275#0" expanded="true" />
489
+            <element signature="e#390#391#0" expanded="true" />
490
+            <element signature="e#417#418#0" expanded="true" />
491
+            <element signature="e#516#517#0" expanded="true" />
492
+            <element signature="e#543#544#0" expanded="true" />
493
+          </folding>
494
+        </state>
495
+      </provider>
496
+    </entry>
497
+    <entry file="file://$PROJECT_DIR$/src/test/java/MyArrayListTest.java">
498
+      <provider selected="true" editor-type-id="text-editor">
499
+        <state relative-caret-position="113">
500
+          <caret line="46" column="13" selection-start-line="46" selection-start-column="13" selection-end-line="46" selection-end-column="13" />
501
+          <folding>
502
+            <element signature="imports" expanded="true" />
503
+            <element signature="e#759#760#0" expanded="true" />
504
+            <element signature="e#829#830#0" expanded="true" />
505
+            <element signature="e#869#870#0" expanded="true" />
506
+            <element signature="e#939#940#0" expanded="true" />
507
+            <element signature="e#981#982#0" expanded="true" />
508
+            <element signature="e#1051#1052#0" expanded="true" />
509
+            <element signature="e#1094#1095#0" expanded="true" />
510
+            <element signature="e#1164#1165#0" expanded="true" />
511
+            <element signature="e#1207#1208#0" expanded="true" />
512
+            <element signature="e#1277#1278#0" expanded="true" />
513
+          </folding>
514
+        </state>
515
+      </provider>
516
+    </entry>
517
+    <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/src.zip!/java/util/ArrayList.java">
518
+      <provider selected="true" editor-type-id="text-editor">
519
+        <state relative-caret-position="-1082">
520
+          <caret line="134" column="25" lean-forward="true" selection-start-line="134" selection-start-column="25" selection-end-line="134" selection-end-column="25" />
521
+        </state>
522
+      </provider>
523
+    </entry>
524
+  </component>
525
+  <component name="masterDetails">
526
+    <states>
527
+      <state key="GlobalLibrariesConfigurable.UI">
528
+        <settings>
529
+          <splitter-proportions>
530
+            <option name="proportions">
531
+              <list>
532
+                <option value="0.2" />
533
+              </list>
534
+            </option>
535
+          </splitter-proportions>
536
+        </settings>
537
+      </state>
538
+      <state key="JdkListConfigurable.UI">
539
+        <settings>
540
+          <last-edited>1.8</last-edited>
541
+          <splitter-proportions>
542
+            <option name="proportions">
543
+              <list>
544
+                <option value="0.2" />
545
+              </list>
546
+            </option>
547
+          </splitter-proportions>
548
+        </settings>
549
+      </state>
550
+      <state key="ProjectJDKs.UI">
551
+        <settings>
552
+          <last-edited>1.8</last-edited>
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="ProjectLibrariesConfigurable.UI">
563
+        <settings>
564
+          <splitter-proportions>
565
+            <option name="proportions">
566
+              <list>
567
+                <option value="0.2" />
568
+              </list>
569
+            </option>
570
+          </splitter-proportions>
571
+        </settings>
572
+      </state>
573
+    </states>
574
+  </component>
575
+</project>

+ 16
- 0
generics.iml Wyświetl plik

@@ -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.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 Wyświetl plik


+ 24
- 0
src/main/java/MyArrayList.java Wyświetl plik

@@ -0,0 +1,24 @@
1
+import java.util.ArrayList;
2
+
3
+public class MyArrayList <E> {
4
+    private static final int DEFAULT_CAPACITY = 15;
5
+    Object[] myArray = new Object[DEFAULT_CAPACITY];
6
+
7
+    public void add(E e){
8
+
9
+        myArray = new Object[myArray.length + 1];
10
+        myArray[myArray.length-1] = e;
11
+    }
12
+
13
+    public E get(int index){
14
+        return (E)myArray[index];
15
+    }
16
+
17
+    public E remove(int index) {
18
+        return null;
19
+    }
20
+
21
+    public boolean remove(Object object){
22
+        return false;
23
+    }
24
+}

+ 0
- 0
src/test/java/.deleteme Wyświetl plik


+ 92
- 0
src/test/java/MyArrayListTest.java Wyświetl plik

@@ -0,0 +1,92 @@
1
+import org.junit.Test;
2
+
3
+import static junit.framework.TestCase.assertEquals;
4
+import static junit.framework.TestCase.assertTrue;
5
+import static org.junit.Assert.assertNull;
6
+
7
+public class MyArrayListTest {
8
+
9
+    @Test
10
+    public void addTest(){
11
+        MyArrayList<Integer> myArrayList = new MyArrayList<>();
12
+        Integer expected = 10;
13
+        myArrayList.add(expected);
14
+        Integer actual = myArrayList.get(0);
15
+        assertEquals(expected, actual);
16
+    }
17
+
18
+    @Test(expected = IndexOutOfBoundsException.class)
19
+    public void getTestEmpty(){
20
+        MyArrayList<Integer> myArrayList = new MyArrayList<>();
21
+        myArrayList.get(0);
22
+    }
23
+
24
+    @Test
25
+    public void removeIndexTest(){
26
+        MyArrayList<Integer> myArrayList = new MyArrayList<>();
27
+        Integer expected = 10;
28
+        myArrayList.add(expected);
29
+        Integer actual = myArrayList.remove(0);
30
+        assertEquals(expected, actual);
31
+    }
32
+
33
+    @Test(expected = IndexOutOfBoundsException.class)
34
+    public void removeIndexTest2(){
35
+        MyArrayList<Integer> myArrayList = new MyArrayList<>();
36
+        Integer i = 10;
37
+        myArrayList.add(i);
38
+        myArrayList.remove(0);
39
+        myArrayList.get(0);
40
+    }
41
+
42
+    @Test
43
+    public void removeObjectTest(){
44
+        MyArrayList<Integer> myArrayList = new MyArrayList<>();
45
+        Integer i = 10;
46
+        myArrayList.add(i);
47
+        assertTrue(myArrayList.remove(i));
48
+    }
49
+
50
+    @Test(expected = IndexOutOfBoundsException.class)
51
+    public void removeObjectTest2(){
52
+        MyArrayList<Integer> myArrayList = new MyArrayList<>();
53
+        Integer i = 10;
54
+        myArrayList.add(i);
55
+        myArrayList.remove(i);
56
+        myArrayList.get(0);
57
+    }
58
+
59
+    @Test
60
+    public void setTest(){
61
+        MyArrayList<Integer> myArrayList = new MyArrayList<>();
62
+    }
63
+
64
+    @Test
65
+    public void clearTest(){
66
+        MyArrayList<Integer> myArrayList = new MyArrayList<>();
67
+    }
68
+
69
+    @Test
70
+    public void isEmptyTest(){
71
+        MyArrayList<Integer> myArrayList = new MyArrayList<>();
72
+    }
73
+
74
+    @Test
75
+    public void containsTest(){
76
+        MyArrayList<Integer> myArrayList = new MyArrayList<>();
77
+    }
78
+
79
+    @Test
80
+    public void sortTest(){
81
+        MyArrayList<Integer> myArrayList = new MyArrayList<>();
82
+    }
83
+
84
+    @Test
85
+    public void testCapacity(){
86
+        MyArrayList<Object> myArrayList = new MyArrayList<>();
87
+        for (int i = 0; i<14; i++){
88
+            System.out.println(myArrayList.get(i));
89
+        }
90
+    }
91
+
92
+}