Kaynağa Gözat

MyArrayList - Complete

MySet - working set
Changing name to array
Nick Satinover 6 yıl önce
ebeveyn
işleme
2d9475d289

+ 140
- 110
.idea/workspace.xml Dosyayı Görüntüle

@@ -3,7 +3,10 @@
3 3
   <component name="ChangeListManager">
4 4
     <list default="true" id="6eefb94a-8003-4639-a54f-0d11804b5db5" name="Default Changelist" comment="">
5 5
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/src/main/java/.deleteme" beforeDir="false" />
7
+      <change beforePath="$PROJECT_DIR$/src/main/java/MyArrayList.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/MyArrayList.java" afterDir="false" />
6 8
       <change beforePath="$PROJECT_DIR$/src/main/java/MySet.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/MySet.java" afterDir="false" />
9
+      <change beforePath="$PROJECT_DIR$/src/test/java/.deleteme" beforeDir="false" />
7 10
       <change beforePath="$PROJECT_DIR$/src/test/java/MySetTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/MySetTest.java" afterDir="false" />
8 11
     </list>
9 12
     <ignored path="$PROJECT_DIR$/target/" />
@@ -15,10 +18,12 @@
15 18
   </component>
16 19
   <component name="CoverageDataManager">
17 20
     <SUITE FILE_PATH="coverage/generics$MySetTest.ic" NAME="MySetTest Coverage Results" MODIFIED="1542306502632" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
21
+    <SUITE FILE_PATH="coverage/generics$All_in_generics.ic" NAME="All in generics Coverage Results" MODIFIED="1542391002111" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
18 22
     <SUITE FILE_PATH="coverage/generics$MyArrayListTest.ic" NAME="MyArrayListTest Coverage Results" MODIFIED="1542228761533" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
23
+    <SUITE FILE_PATH="coverage/generics$MySetTest_toArrayStringTest.ic" NAME="MySetTest.toArrayStringTest Coverage Results" MODIFIED="1542391314888" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
19 24
   </component>
20 25
   <component name="CoverageViewManager">
21
-    <option name="myElementSize" value="311" />
26
+    <option name="myElementSize" value="324" />
22 27
   </component>
23 28
   <component name="FUSProjectUsageTrigger">
24 29
     <session id="914426633">
@@ -33,33 +38,33 @@
33 38
       </usages-collector>
34 39
       <usages-collector id="statistics.file.extensions.open">
35 40
         <counts>
36
-          <entry key="class" value="19" />
41
+          <entry key="class" value="20" />
37 42
           <entry key="iml" value="2" />
38
-          <entry key="java" value="26" />
43
+          <entry key="java" value="29" />
39 44
           <entry key="snippet" value="1" />
40 45
           <entry key="xml" value="1" />
41 46
         </counts>
42 47
       </usages-collector>
43 48
       <usages-collector id="statistics.file.types.open">
44 49
         <counts>
45
-          <entry key="CLASS" value="19" />
50
+          <entry key="CLASS" value="20" />
46 51
           <entry key="IDEA_MODULE" value="2" />
47
-          <entry key="JAVA" value="26" />
52
+          <entry key="JAVA" value="29" />
48 53
           <entry key="Scratch" value="1" />
49 54
           <entry key="XML" value="1" />
50 55
         </counts>
51 56
       </usages-collector>
52 57
       <usages-collector id="statistics.file.extensions.edit">
53 58
         <counts>
54
-          <entry key="java" value="3314" />
55
-          <entry key="txt" value="125" />
59
+          <entry key="java" value="3563" />
60
+          <entry key="txt" value="134" />
56 61
           <entry key="xml" value="2" />
57 62
         </counts>
58 63
       </usages-collector>
59 64
       <usages-collector id="statistics.file.types.edit">
60 65
         <counts>
61
-          <entry key="JAVA" value="3314" />
62
-          <entry key="PLAIN_TEXT" value="125" />
66
+          <entry key="JAVA" value="3563" />
67
+          <entry key="PLAIN_TEXT" value="134" />
63 68
           <entry key="XML" value="2" />
64 69
         </counts>
65 70
       </usages-collector>
@@ -72,20 +77,22 @@
72 77
           <file pinned="false" current-in-tab="true">
73 78
             <entry file="file://$PROJECT_DIR$/src/main/java/MySet.java">
74 79
               <provider selected="true" editor-type-id="text-editor">
75
-                <state relative-caret-position="535">
76
-                  <caret line="207" column="15" selection-start-line="207" selection-start-column="15" selection-end-line="207" selection-end-column="15" />
80
+                <state relative-caret-position="306">
81
+                  <caret line="22" column="19" selection-start-line="22" selection-start-column="16" selection-end-line="22" selection-end-column="19" />
77 82
                   <folding>
78 83
                     <element signature="imports" expanded="true" />
79 84
                     <element signature="e#244#245#0" expanded="true" />
80 85
                     <element signature="e#286#287#0" expanded="true" />
81 86
                     <element signature="e#310#311#0" expanded="true" />
82 87
                     <element signature="e#348#349#0" expanded="true" />
88
+                    <element signature="e#411#412#0" expanded="true" />
89
+                    <element signature="e#448#449#0" expanded="true" />
83 90
                     <element signature="e#1104#1105#0" expanded="true" />
84 91
                     <element signature="e#1169#1170#0" expanded="true" />
85 92
                     <element signature="e#1222#1223#0" expanded="true" />
86 93
                     <element signature="e#1280#1281#0" expanded="true" />
87
-                    <element signature="e#5057#5058#0" expanded="true" />
88
-                    <element signature="e#5085#5086#0" expanded="true" />
94
+                    <element signature="e#5055#5056#0" expanded="true" />
95
+                    <element signature="e#5092#5093#0" expanded="true" />
89 96
                   </folding>
90 97
                 </state>
91 98
               </provider>
@@ -94,8 +101,8 @@
94 101
           <file pinned="false" current-in-tab="false">
95 102
             <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/src.zip!/java/util/Set.java">
96 103
               <provider selected="true" editor-type-id="text-editor">
97
-                <state relative-caret-position="238">
98
-                  <caret line="272" column="23" selection-start-line="272" selection-start-column="12" selection-end-line="272" selection-end-column="23" />
104
+                <state relative-caret-position="233">
105
+                  <caret line="145" column="16" selection-start-line="145" selection-start-column="13" selection-end-line="145" selection-end-column="16" />
99 106
                 </state>
100 107
               </provider>
101 108
             </entry>
@@ -104,11 +111,11 @@
104 111
       </split-first>
105 112
       <split-second>
106 113
         <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
107
-          <file pinned="false" current-in-tab="true">
114
+          <file pinned="false" current-in-tab="false">
108 115
             <entry file="file://$PROJECT_DIR$/src/test/java/MySetTest.java">
109 116
               <provider selected="true" editor-type-id="text-editor">
110
-                <state relative-caret-position="459">
111
-                  <caret line="157" column="15" selection-start-line="157" selection-start-column="15" selection-end-line="157" selection-end-column="15" />
117
+                <state relative-caret-position="338">
118
+                  <caret line="79" column="28" selection-start-line="79" selection-start-column="28" selection-end-line="79" selection-end-column="28" />
112 119
                   <folding>
113 120
                     <element signature="imports" expanded="true" />
114 121
                     <element signature="e#1474#1480#0" expanded="true" />
@@ -133,14 +140,16 @@
133 140
               </provider>
134 141
             </entry>
135 142
           </file>
136
-          <file pinned="false" current-in-tab="false">
143
+          <file pinned="false" current-in-tab="true">
137 144
             <entry file="file://$PROJECT_DIR$/src/main/java/MyArrayList.java">
138 145
               <provider selected="true" editor-type-id="text-editor">
139
-                <state relative-caret-position="255">
140
-                  <caret line="21" selection-start-line="21" selection-end-line="21" />
146
+                <state relative-caret-position="225">
147
+                  <caret line="17" column="20" selection-start-line="17" selection-start-column="20" selection-end-line="17" selection-end-column="20" />
141 148
                   <folding>
142 149
                     <element signature="e#151#152#0" expanded="true" />
143 150
                     <element signature="e#197#198#0" expanded="true" />
151
+                    <element signature="e#293#294#0" expanded="true" />
152
+                    <element signature="e#337#338#0" expanded="true" />
144 153
                     <element signature="method#add#1;class#MyArrayList#0" />
145 154
                     <element signature="method#isEmpty#0;class#MyArrayList#0" />
146 155
                     <element signature="method#contains#0;class#MyArrayList#0" />
@@ -168,8 +177,9 @@
168 177
       <find>iter</find>
169 178
       <find>removeAll</find>
170 179
       <find>retainAll</find>
171
-      <find>toArray</find>
172 180
       <find>containsAll</find>
181
+      <find>toA</find>
182
+      <find>toArray</find>
173 183
     </findStrings>
174 184
   </component>
175 185
   <component name="Git.Settings">
@@ -181,9 +191,9 @@
181 191
         <option value="$PROJECT_DIR$/src/main/java/ReadThenDelete.java" />
182 192
         <option value="$PROJECT_DIR$/src/test/java/MyArrayListTest.java" />
183 193
         <option value="$PROJECT_DIR$/pom.xml" />
194
+        <option value="$PROJECT_DIR$/src/test/java/MySetTest.java" />
184 195
         <option value="$PROJECT_DIR$/src/main/java/MyArrayList.java" />
185 196
         <option value="$PROJECT_DIR$/src/main/java/MySet.java" />
186
-        <option value="$PROJECT_DIR$/src/test/java/MySetTest.java" />
187 197
       </list>
188 198
     </option>
189 199
   </component>
@@ -263,7 +273,7 @@
263 273
   <component name="PropertiesComponent">
264 274
     <property name="WebServerToolWindowFactoryState" value="false" />
265 275
     <property name="aspect.path.notification.shown" value="true" />
266
-    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1542390917194" />
276
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1542393662901" />
267 277
     <property name="last_opened_file_path" value="$PROJECT_DIR$/pom.xml" />
268 278
     <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
269 279
     <property name="nodejs_npm_path_reset_for_default_project" value="true" />
@@ -281,57 +291,55 @@
281 291
       </list>
282 292
     </option>
283 293
   </component>
284
-  <component name="RunManager" selected="JUnit.MySetTest.containsAllLongBooleanTest">
294
+  <component name="RunManager" selected="JUnit.MySetTest.toArrayObjectTest">
285 295
     <configuration default="true" type="Application" factoryName="Application" show_console_on_std_err="true" show_console_on_std_out="true">
286 296
       <method v="2">
287 297
         <option name="Make" enabled="true" />
288 298
       </method>
289 299
     </configuration>
290
-    <configuration name="MySetTest.containsAllLongBooleanTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
300
+    <configuration name="All in generics" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
291 301
       <module name="generics" />
292 302
       <option name="PACKAGE_NAME" value="" />
293
-      <option name="MAIN_CLASS_NAME" value="MySetTest" />
294
-      <option name="METHOD_NAME" value="containsAllLongBooleanTest" />
295
-      <option name="TEST_OBJECT" value="method" />
303
+      <option name="TEST_OBJECT" value="package" />
296 304
       <method v="2">
297 305
         <option name="Make" enabled="true" />
298 306
       </method>
299 307
     </configuration>
300
-    <configuration name="MySetTest.removeAllLongBooleanTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
308
+    <configuration name="MySetTest.containsAllLongBooleanTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
301 309
       <module name="generics" />
302 310
       <option name="PACKAGE_NAME" value="" />
303 311
       <option name="MAIN_CLASS_NAME" value="MySetTest" />
304
-      <option name="METHOD_NAME" value="removeAllLongBooleanTest" />
312
+      <option name="METHOD_NAME" value="containsAllLongBooleanTest" />
305 313
       <option name="TEST_OBJECT" value="method" />
306 314
       <method v="2">
307 315
         <option name="Make" enabled="true" />
308 316
       </method>
309 317
     </configuration>
310
-    <configuration name="MySetTest.retainAllStringBooleanTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
318
+    <configuration name="MySetTest.retainAllStringBooleanTest1" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
311 319
       <module name="generics" />
312 320
       <option name="PACKAGE_NAME" value="" />
313 321
       <option name="MAIN_CLASS_NAME" value="MySetTest" />
314
-      <option name="METHOD_NAME" value="retainAllStringBooleanTest" />
322
+      <option name="METHOD_NAME" value="retainAllStringBooleanTest1" />
315 323
       <option name="TEST_OBJECT" value="method" />
316 324
       <method v="2">
317 325
         <option name="Make" enabled="true" />
318 326
       </method>
319 327
     </configuration>
320
-    <configuration name="MySetTest.retainAllStringBooleanTest1" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
328
+    <configuration name="MySetTest.toArrayObjectTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
321 329
       <module name="generics" />
322 330
       <option name="PACKAGE_NAME" value="" />
323 331
       <option name="MAIN_CLASS_NAME" value="MySetTest" />
324
-      <option name="METHOD_NAME" value="retainAllStringBooleanTest1" />
332
+      <option name="METHOD_NAME" value="toArrayObjectTest" />
325 333
       <option name="TEST_OBJECT" value="method" />
326 334
       <method v="2">
327 335
         <option name="Make" enabled="true" />
328 336
       </method>
329 337
     </configuration>
330
-    <configuration name="MySetTest.retainAllStringTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
338
+    <configuration name="MySetTest.toArrayStringTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
331 339
       <module name="generics" />
332 340
       <option name="PACKAGE_NAME" value="" />
333 341
       <option name="MAIN_CLASS_NAME" value="MySetTest" />
334
-      <option name="METHOD_NAME" value="retainAllStringTest" />
342
+      <option name="METHOD_NAME" value="toArrayStringTest" />
335 343
       <option name="TEST_OBJECT" value="method" />
336 344
       <method v="2">
337 345
         <option name="Make" enabled="true" />
@@ -361,19 +369,19 @@
361 369
       <method v="2" />
362 370
     </configuration>
363 371
     <list>
364
-      <item itemvalue="JUnit.MySetTest.removeAllLongBooleanTest" />
365
-      <item itemvalue="JUnit.MySetTest.retainAllStringTest" />
366
-      <item itemvalue="JUnit.MySetTest.retainAllStringBooleanTest" />
367 372
       <item itemvalue="JUnit.MySetTest.retainAllStringBooleanTest1" />
368 373
       <item itemvalue="JUnit.MySetTest.containsAllLongBooleanTest" />
374
+      <item itemvalue="JUnit.All in generics" />
375
+      <item itemvalue="JUnit.MySetTest.toArrayStringTest" />
376
+      <item itemvalue="JUnit.MySetTest.toArrayObjectTest" />
369 377
     </list>
370 378
     <recent_temporary>
371 379
       <list>
380
+        <item itemvalue="JUnit.MySetTest.toArrayObjectTest" />
381
+        <item itemvalue="JUnit.MySetTest.toArrayStringTest" />
382
+        <item itemvalue="JUnit.All in generics" />
372 383
         <item itemvalue="JUnit.MySetTest.containsAllLongBooleanTest" />
373 384
         <item itemvalue="JUnit.MySetTest.retainAllStringBooleanTest1" />
374
-        <item itemvalue="JUnit.MySetTest.retainAllStringBooleanTest" />
375
-        <item itemvalue="JUnit.MySetTest.retainAllStringTest" />
376
-        <item itemvalue="JUnit.MySetTest.removeAllLongBooleanTest" />
377 385
       </list>
378 386
     </recent_temporary>
379 387
   </component>
@@ -391,7 +399,7 @@
391 399
       <workItem from="1542145228816" duration="418000" />
392 400
       <workItem from="1542165623771" duration="4833000" />
393 401
       <workItem from="1542225031291" duration="12159000" />
394
-      <workItem from="1542293882069" duration="22947000" />
402
+      <workItem from="1542293882069" duration="25706000" />
395 403
     </task>
396 404
     <task id="LOCAL-00001" summary="MyArrayList&#10;Get, Add">
397 405
       <created>1542167642899</created>
@@ -484,28 +492,17 @@
484 492
       <option name="project" value="LOCAL" />
485 493
       <updated>1542381338323</updated>
486 494
     </task>
487
-    <option name="localTasksCounter" value="14" />
495
+    <task id="LOCAL-00014" summary="MyArrayList - Complete&#10;MySet - Complete">
496
+      <created>1542390949971</created>
497
+      <option name="number" value="00014" />
498
+      <option name="presentableId" value="LOCAL-00014" />
499
+      <option name="project" value="LOCAL" />
500
+      <updated>1542390949972</updated>
501
+    </task>
502
+    <option name="localTasksCounter" value="15" />
488 503
     <servers />
489 504
   </component>
490 505
   <component name="TestHistory">
491
-    <history-entry file="MySetTest_removeAlllIntegerBooleanTest - 2018.11.16 at 10h 10m 31s.xml">
492
-      <configuration name="MySetTest.removeAlllIntegerBooleanTest" configurationId="JUnit" />
493
-    </history-entry>
494
-    <history-entry file="MySetTest_removeAlllIntegerBooleanTest - 2018.11.16 at 10h 10m 41s.xml">
495
-      <configuration name="MySetTest.removeAlllIntegerBooleanTest" configurationId="JUnit" />
496
-    </history-entry>
497
-    <history-entry file="MySetTest_removeAllLongBooleanTest - 2018.11.16 at 12h 37m 41s.xml">
498
-      <configuration name="MySetTest.removeAllLongBooleanTest" configurationId="JUnit" />
499
-    </history-entry>
500
-    <history-entry file="MySetTest_removeAllLongBooleanTest - 2018.11.16 at 12h 38m 03s.xml">
501
-      <configuration name="MySetTest.removeAllLongBooleanTest" configurationId="JUnit" />
502
-    </history-entry>
503
-    <history-entry file="MySetTest_retainAllStringTest - 2018.11.16 at 12h 47m 31s.xml">
504
-      <configuration name="MySetTest.retainAllStringTest" configurationId="JUnit" />
505
-    </history-entry>
506
-    <history-entry file="MySetTest_retainAllStringTest - 2018.11.16 at 12h 47m 56s.xml">
507
-      <configuration name="MySetTest.retainAllStringTest" configurationId="JUnit" />
508
-    </history-entry>
509 506
     <history-entry file="MySetTest_retainAllStringBooleanTest - 2018.11.16 at 12h 49m 25s.xml">
510 507
       <configuration name="MySetTest.retainAllStringBooleanTest" configurationId="JUnit" />
511 508
     </history-entry>
@@ -518,9 +515,27 @@
518 515
     <history-entry file="MySetTest_retainAllStringBooleanTest1 - 2018.11.16 at 12h 50m 24s.xml">
519 516
       <configuration name="MySetTest.retainAllStringBooleanTest1" configurationId="JUnit" />
520 517
     </history-entry>
518
+    <history-entry file="MySetTest_containsAllLongBooleanTest - 2018.11.16 at 12h 54m 59s.xml">
519
+      <configuration name="MySetTest.containsAllLongBooleanTest" configurationId="JUnit" />
520
+    </history-entry>
521
+    <history-entry file="MySetTest_containsAllLongBooleanTest - 2018.11.16 at 12h 55m 07s.xml">
522
+      <configuration name="MySetTest.containsAllLongBooleanTest" configurationId="JUnit" />
523
+    </history-entry>
524
+    <history-entry file="All_in_generics - 2018.11.16 at 12h 56m 45s.xml">
525
+      <configuration name="All in generics" configurationId="JUnit" />
526
+    </history-entry>
527
+    <history-entry file="MySetTest_toArrayStringTest - 2018.11.16 at 13h 01m 57s.xml">
528
+      <configuration name="MySetTest.toArrayStringTest" configurationId="JUnit" />
529
+    </history-entry>
530
+    <history-entry file="MySetTest_toArrayStringTest - 2018.11.16 at 13h 10m 37s.xml">
531
+      <configuration name="MySetTest.toArrayStringTest" configurationId="JUnit" />
532
+    </history-entry>
533
+    <history-entry file="MySetTest_toArrayObjectTest - 2018.11.16 at 13h 12m 56s.xml">
534
+      <configuration name="MySetTest.toArrayObjectTest" configurationId="JUnit" />
535
+    </history-entry>
521 536
   </component>
522 537
   <component name="TimeTrackingManager">
523
-    <option name="totallyTimeSpent" value="40437000" />
538
+    <option name="totallyTimeSpent" value="43196000" />
524 539
   </component>
525 540
   <component name="TodoView">
526 541
     <todo-panel id="selected-file">
@@ -535,7 +550,7 @@
535 550
     <frame x="-309" y="-1057" width="1920" height="1057" extended-state="6" />
536 551
     <editor active="true" />
537 552
     <layout>
538
-      <window_info content_ui="combo" id="Project" order="0" weight="0.17285945" />
553
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.17252396" />
539 554
       <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
540 555
       <window_info id="Image Layers" order="2" />
541 556
       <window_info id="Designer" order="3" />
@@ -544,8 +559,8 @@
544 559
       <window_info id="Favorites" order="6" side_tool="true" />
545 560
       <window_info anchor="bottom" id="Message" order="0" />
546 561
       <window_info anchor="bottom" id="Find" order="1" weight="0.32953367" />
547
-      <window_info active="true" anchor="bottom" id="Run" order="2" sideWeight="0.4983845" visible="true" weight="0.18134715" />
548
-      <window_info anchor="bottom" id="Debug" order="3" sideWeight="0.49757674" weight="0.44246355" />
562
+      <window_info anchor="bottom" id="Run" order="2" sideWeight="0.4983845" weight="0.18134715" />
563
+      <window_info anchor="bottom" id="Debug" order="3" sideWeight="0.49757674" weight="0.44145077" />
549 564
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
550 565
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
551 566
       <window_info anchor="bottom" id="TODO" order="6" weight="0.32901135" />
@@ -553,7 +568,7 @@
553 568
       <window_info anchor="bottom" id="Terminal" order="8" sideWeight="0.4983845" weight="0.20907618" />
554 569
       <window_info anchor="bottom" id="Event Log" order="9" sideWeight="0.5016155" side_tool="true" weight="0.20907618" />
555 570
       <window_info anchor="bottom" id="Version Control" order="10" show_stripe_button="false" />
556
-      <window_info anchor="bottom" id="Messages" order="11" weight="0.32642487" />
571
+      <window_info active="true" anchor="bottom" id="Messages" order="11" visible="true" weight="0.32642487" />
557 572
       <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
558 573
       <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
559 574
       <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
@@ -584,9 +599,20 @@
584 599
     <MESSAGE value="MyArrayList - Complete&#10;MySet - Working&#10;add, get, contains, remove, addAll, clear, iterator" />
585 600
     <MESSAGE value="MyArrayList - Complete&#10;MySet - Working&#10;add, otherAdd get, contains, remove, addAll, clear, iterator" />
586 601
     <MESSAGE value="MyArrayList - Complete&#10;MySet - Working&#10;add, otherAdd get, contains, remove, addAll, clear, iterator, removeAll" />
587
-    <option name="LAST_COMMIT_MESSAGE" value="MyArrayList - Complete&#10;MySet - Working&#10;add, otherAdd get, contains, remove, addAll, clear, iterator, removeAll" />
602
+    <MESSAGE value="MyArrayList - Complete&#10;MySet - Complete" />
603
+    <option name="LAST_COMMIT_MESSAGE" value="MyArrayList - Complete&#10;MySet - Complete" />
588 604
   </component>
589 605
   <component name="XDebuggerManager">
606
+    <breakpoint-manager>
607
+      <breakpoints>
608
+        <line-breakpoint enabled="true" type="java-line">
609
+          <url>file://$PROJECT_DIR$/src/test/java/MySetTest.java</url>
610
+          <line>79</line>
611
+          <properties />
612
+          <option name="timeStamp" value="9" />
613
+        </line-breakpoint>
614
+      </breakpoints>
615
+    </breakpoint-manager>
590 616
     <watches-manager>
591 617
       <configuration name="JUnit">
592 618
         <watch expression="newGenericArray[i]" language="JAVA" />
@@ -679,20 +705,6 @@
679 705
         </state>
680 706
       </provider>
681 707
     </entry>
682
-    <entry file="file://$PROJECT_DIR$/src/main/java/MyArrayList.java">
683
-      <provider selected="true" editor-type-id="text-editor">
684
-        <state relative-caret-position="255">
685
-          <caret line="21" selection-start-line="21" selection-end-line="21" />
686
-          <folding>
687
-            <element signature="e#151#152#0" expanded="true" />
688
-            <element signature="e#197#198#0" expanded="true" />
689
-            <element signature="method#add#1;class#MyArrayList#0" />
690
-            <element signature="method#isEmpty#0;class#MyArrayList#0" />
691
-            <element signature="method#contains#0;class#MyArrayList#0" />
692
-          </folding>
693
-        </state>
694
-      </provider>
695
-    </entry>
696 708
     <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/src.zip!/java/util/Iterator.java">
697 709
       <provider selected="true" editor-type-id="text-editor">
698 710
         <state relative-caret-position="95">
@@ -703,13 +715,6 @@
703 715
     <entry file="file://$APPLICATION_CONFIG_DIR$/consoles/jshell/jshell_console.snippet">
704 716
       <provider selected="true" editor-type-id="text-editor" />
705 717
     </entry>
706
-    <entry file="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12.jar!/org/junit/internal/runners/model/ReflectiveCallable.class">
707
-      <provider selected="true" editor-type-id="text-editor">
708
-        <state relative-caret-position="180">
709
-          <caret line="15" selection-start-line="15" selection-end-line="15" />
710
-        </state>
711
-      </provider>
712
-    </entry>
713 718
     <entry file="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12.jar!/org/junit/runners/model/FrameworkMethod.class">
714 719
       <provider selected="true" editor-type-id="text-editor">
715 720
         <state relative-caret-position="180">
@@ -719,35 +724,22 @@
719 724
     </entry>
720 725
     <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/src.zip!/java/util/Set.java">
721 726
       <provider selected="true" editor-type-id="text-editor">
722
-        <state relative-caret-position="238">
723
-          <caret line="272" column="23" selection-start-line="272" selection-start-column="12" selection-end-line="272" selection-end-column="23" />
727
+        <state relative-caret-position="233">
728
+          <caret line="145" column="16" selection-start-line="145" selection-start-column="13" selection-end-line="145" selection-end-column="16" />
724 729
         </state>
725 730
       </provider>
726 731
     </entry>
727
-    <entry file="file://$PROJECT_DIR$/src/main/java/MySet.java">
732
+    <entry file="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12.jar!/org/junit/internal/runners/model/ReflectiveCallable.class">
728 733
       <provider selected="true" editor-type-id="text-editor">
729
-        <state relative-caret-position="535">
730
-          <caret line="207" column="15" selection-start-line="207" selection-start-column="15" selection-end-line="207" selection-end-column="15" />
731
-          <folding>
732
-            <element signature="imports" expanded="true" />
733
-            <element signature="e#244#245#0" expanded="true" />
734
-            <element signature="e#286#287#0" expanded="true" />
735
-            <element signature="e#310#311#0" expanded="true" />
736
-            <element signature="e#348#349#0" expanded="true" />
737
-            <element signature="e#1104#1105#0" expanded="true" />
738
-            <element signature="e#1169#1170#0" expanded="true" />
739
-            <element signature="e#1222#1223#0" expanded="true" />
740
-            <element signature="e#1280#1281#0" expanded="true" />
741
-            <element signature="e#5057#5058#0" expanded="true" />
742
-            <element signature="e#5085#5086#0" expanded="true" />
743
-          </folding>
734
+        <state relative-caret-position="195">
735
+          <caret line="16" selection-start-line="16" selection-end-line="16" />
744 736
         </state>
745 737
       </provider>
746 738
     </entry>
747 739
     <entry file="file://$PROJECT_DIR$/src/test/java/MySetTest.java">
748 740
       <provider selected="true" editor-type-id="text-editor">
749
-        <state relative-caret-position="459">
750
-          <caret line="157" column="15" selection-start-line="157" selection-start-column="15" selection-end-line="157" selection-end-column="15" />
741
+        <state relative-caret-position="338">
742
+          <caret line="79" column="28" selection-start-line="79" selection-start-column="28" selection-end-line="79" selection-end-column="28" />
751 743
           <folding>
752 744
             <element signature="imports" expanded="true" />
753 745
             <element signature="e#1474#1480#0" expanded="true" />
@@ -771,6 +763,44 @@
771 763
         </state>
772 764
       </provider>
773 765
     </entry>
766
+    <entry file="file://$PROJECT_DIR$/src/main/java/MyArrayList.java">
767
+      <provider selected="true" editor-type-id="text-editor">
768
+        <state relative-caret-position="225">
769
+          <caret line="17" column="20" selection-start-line="17" selection-start-column="20" selection-end-line="17" selection-end-column="20" />
770
+          <folding>
771
+            <element signature="e#151#152#0" expanded="true" />
772
+            <element signature="e#197#198#0" expanded="true" />
773
+            <element signature="e#293#294#0" expanded="true" />
774
+            <element signature="e#337#338#0" expanded="true" />
775
+            <element signature="method#add#1;class#MyArrayList#0" />
776
+            <element signature="method#isEmpty#0;class#MyArrayList#0" />
777
+            <element signature="method#contains#0;class#MyArrayList#0" />
778
+          </folding>
779
+        </state>
780
+      </provider>
781
+    </entry>
782
+    <entry file="file://$PROJECT_DIR$/src/main/java/MySet.java">
783
+      <provider selected="true" editor-type-id="text-editor">
784
+        <state relative-caret-position="306">
785
+          <caret line="22" column="19" selection-start-line="22" selection-start-column="16" selection-end-line="22" selection-end-column="19" />
786
+          <folding>
787
+            <element signature="imports" expanded="true" />
788
+            <element signature="e#244#245#0" expanded="true" />
789
+            <element signature="e#286#287#0" expanded="true" />
790
+            <element signature="e#310#311#0" expanded="true" />
791
+            <element signature="e#348#349#0" expanded="true" />
792
+            <element signature="e#411#412#0" expanded="true" />
793
+            <element signature="e#448#449#0" expanded="true" />
794
+            <element signature="e#1104#1105#0" expanded="true" />
795
+            <element signature="e#1169#1170#0" expanded="true" />
796
+            <element signature="e#1222#1223#0" expanded="true" />
797
+            <element signature="e#1280#1281#0" expanded="true" />
798
+            <element signature="e#5055#5056#0" expanded="true" />
799
+            <element signature="e#5092#5093#0" expanded="true" />
800
+          </folding>
801
+        </state>
802
+      </provider>
803
+    </entry>
774 804
   </component>
775 805
   <component name="masterDetails">
776 806
     <states>

+ 0
- 0
src/main/java/.deleteme Dosyayı Görüntüle


+ 1
- 1
src/main/java/MyArrayList.java Dosyayı Görüntüle

@@ -15,7 +15,7 @@ public class MyArrayList<T> {
15 15
     }
16 16
 
17 17
     public void set(T[] setArray) {
18
-        genericArray = setArray;
18
+        this.genericArray = setArray;
19 19
     }
20 20
 
21 21
     public boolean add(T genericToAdd) {

+ 11
- 5
src/main/java/MySet.java Dosyayı Görüntüle

@@ -20,6 +20,10 @@ public class MySet<T> extends MyArrayList implements Set {
20 20
         return this.genericSet;
21 21
     }
22 22
 
23
+    public void set(T[] setList) {
24
+        this.genericSet = setList;
25
+    }
26
+
23 27
     @Override
24 28
     public int size() {
25 29
         int countSize = 0;
@@ -83,13 +87,15 @@ public class MySet<T> extends MyArrayList implements Set {
83 87
 
84 88
     @Override
85 89
     public Object[] toArray(Object[] a) {
86
-        T[] newGenericSet = (T[]) Array.newInstance(a.getClass().getComponentType(),
87
-                a.length);
90
+        int length = a.length > genericSet.length ? a.length : genericSet.length;
91
+        Object[] object = (Object[]) Array.newInstance(genericSet.getClass().getComponentType(),
92
+                length);
88 93
 
89
-        for (int i = 0; i < a.length; i++) {
90
-            newGenericSet[i] = (T)a[i];
94
+        for (int i = 0; i < genericSet.length; i++) {
95
+            object[i] = genericSet[i];
91 96
         }
92
-        return newGenericSet;
97
+
98
+        return object;
93 99
     }
94 100
 
95 101
     @Override

+ 0
- 0
src/test/java/.deleteme Dosyayı Görüntüle


+ 5
- 4
src/test/java/MySetTest.java Dosyayı Görüntüle

@@ -70,14 +70,15 @@ public class MySetTest {
70 70
     }
71 71
 
72 72
     @Test
73
-    public void toArrayStringTest() {
73
+    public void toArrayObjectTest() {
74 74
         // Given
75 75
         Object[] expected = {"1", "2", "8", "4"};
76
-        String[] inputArray = {"1", "2", "8", "4"};
77
-        MySet<String> mySet = new MySet<String>(inputArray);
76
+        Object[] actual = {"1", "2", "8", "4"};
77
+        MySet<String> mySet = new MySet<String>();
78 78
 
79 79
         // When
80
-        Object[] actual = mySet.toArray();
80
+        mySet.set(expected);
81
+        actual = mySet.toArray(actual);
81 82
 
82 83
         // Then
83 84
         Assert.assertEquals(expected, actual);