Leon 7 年之前
父節點
當前提交
6ca478a08c
共有 28 個檔案被更改,包括 119 行新增131 行删除
  1. 67
    72
      .idea/workspace.xml
  2. 3
    3
      src/main/java/com/zipcodewilmington/streams/StreamFilter.java
  3. 1
    5
      src/main/java/com/zipcodewilmington/streams/StreamMap.java
  4. 1
    1
      src/main/java/com/zipcodewilmington/streams/anthropoid/Person.java
  5. 3
    3
      src/main/java/com/zipcodewilmington/streams/anthropoid/PersonFactory.java
  6. 3
    3
      src/main/java/com/zipcodewilmington/streams/exercises/ArrayConverter.java
  7. 2
    2
      src/main/java/com/zipcodewilmington/streams/exercises/ConversionAgent.java
  8. 3
    3
      src/main/java/com/zipcodewilmington/streams/exercises/ListConverter.java
  9. 4
    6
      src/main/java/com/zipcodewilmington/streams/exercises/StreamConverter.java
  10. 1
    1
      src/main/java/com/zipcodewilmington/streams/tools/RandomUtils.java
  11. 1
    1
      src/main/java/com/zipcodewilmington/streams/tools/ReflectionUtils.java
  12. 1
    5
      src/main/java/com/zipcodewilmington/streams/tools/StringUtils.java
  13. 0
    8
      src/test/java/com/zipcodewilmington/lambdas/exercises/TestConstants.java
  14. 8
    0
      src/test/java/com/zipcodewilmington/streams/TestConstants.java
  15. 5
    5
      src/test/java/com/zipcodewilmington/streams/TestPersonFactory.java
  16. 2
    2
      src/test/java/com/zipcodewilmington/streams/TestStreamFilter.java
  17. 1
    1
      src/test/java/com/zipcodewilmington/streams/TestStreamMap.java
  18. 1
    1
      src/test/java/com/zipcodewilmington/streams/TestSuiteFullRegression.java
  19. 2
    2
      src/test/java/com/zipcodewilmington/streams/exercises/TestConversionAgent.java
  20. 3
    1
      src/test/java/com/zipcodewilmington/streams/exercises/TestConverterArray.java
  21. 3
    1
      src/test/java/com/zipcodewilmington/streams/exercises/TestConverterList.java
  22. 3
    1
      src/test/java/com/zipcodewilmington/streams/exercises/TestConverterStream.java
  23. 1
    4
      src/test/java/com/zipcodewilmington/streams/exercises/TestSuiteConversionRegression.java
  24. 二進制
      target/classes/com/zipcodewilmington/lambdas/exercises/StreamConverter.class
  25. 二進制
      target/test-classes/com/zipcodewilmington/lambdas/exercises/TestConstants.class
  26. 二進制
      target/test-classes/com/zipcodewilmington/lambdas/exercises/TestConverterArray.class
  27. 二進制
      target/test-classes/com/zipcodewilmington/lambdas/exercises/TestConverterList.class
  28. 二進制
      target/test-classes/com/zipcodewilmington/lambdas/exercises/TestConverterStream.class

+ 67
- 72
.idea/workspace.xml 查看文件

2
 <project version="4">
2
 <project version="4">
3
   <component name="ChangeListManager">
3
   <component name="ChangeListManager">
4
     <list default="true" id="30b7e4a0-b899-49c3-865c-0311dfadae62" name="Default" comment="">
4
     <list default="true" id="30b7e4a0-b899-49c3-865c-0311dfadae62" name="Default" comment="">
5
-      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/ListConverter.java" />
6
-      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/StreamConverter.java" />
7
-      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/test/java/com/zipcodewilmington/lambdas/exercises/TestConstants.java" />
8
-      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/test/java/com/zipcodewilmington/lambdas/exercises/TestConversionAgent.java" />
9
-      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/test/java/com/zipcodewilmington/lambdas/exercises/TestConverterArray.java" />
10
-      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/test/java/com/zipcodewilmington/lambdas/exercises/TestConverterList.java" />
11
-      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/test/java/com/zipcodewilmington/lambdas/exercises/TestConverterStream.java" />
12
-      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/test/java/com/zipcodewilmington/lambdas/exercises/TestSuiteConversionRegression.java" />
13
-      <change type="DELETED" beforePath="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/ListConversion.java" afterPath="" />
14
-      <change type="DELETED" beforePath="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/StreamConversion.java" afterPath="" />
15
-      <change type="DELETED" beforePath="$PROJECT_DIR$/target/classes/com/zipcodewilmington/lambdas/LambdaFilter.class" afterPath="" />
16
-      <change type="DELETED" beforePath="$PROJECT_DIR$/target/classes/com/zipcodewilmington/lambdas/MapSyntax.class" afterPath="" />
17
-      <change type="DELETED" beforePath="$PROJECT_DIR$/target/test-classes/com/zipcodewilmington/lambdas/TestLambdaFilter.class" afterPath="" />
18
-      <change type="DELETED" beforePath="$PROJECT_DIR$/target/test-classes/com/zipcodewilmington/lambdas/TestMapSyntax.class" afterPath="" />
19
-      <change type="MOVED" beforePath="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/ArrayConversion.java" afterPath="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/ArrayConverter.java" />
20
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/com/zipcodewilmington/lambdas/anthropoid/PersonFactory.class" afterPath="$PROJECT_DIR$/target/classes/com/zipcodewilmington/lambdas/anthropoid/PersonFactory.class" />
21
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/com/zipcodewilmington/lambdas/tools/StringUtils.class" afterPath="$PROJECT_DIR$/target/classes/com/zipcodewilmington/lambdas/tools/StringUtils.class" />
22
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/test-classes/com/zipcodewilmington/lambdas/TestSuiteFullRegression.class" afterPath="$PROJECT_DIR$/target/test-classes/com/zipcodewilmington/lambdas/TestSuiteFullRegression.class" />
23
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
24
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/anthropoid/PersonFactory.java" afterPath="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/anthropoid/PersonFactory.java" />
25
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/ConversionAgent.java" afterPath="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/ConversionAgent.java" />
26
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/tools/StringUtils.java" afterPath="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/tools/StringUtils.java" />
27
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/test/java/com/zipcodewilmington/lambdas/TestStreamFilter.java" afterPath="$PROJECT_DIR$/src/test/java/com/zipcodewilmington/lambdas/TestStreamFilter.java" />
5
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/StreamConverter.java" afterPath="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/StreamConverter.java" />
6
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/test/java/com/zipcodewilmington/lambdas/exercises/TestConstants.java" afterPath="$PROJECT_DIR$/src/test/java/com/zipcodewilmington/lambdas/exercises/TestConstants.java" />
28
     </list>
7
     </list>
29
     <ignored path="$PROJECT_DIR$/out/" />
8
     <ignored path="$PROJECT_DIR$/out/" />
30
     <ignored path="$PROJECT_DIR$/target/" />
9
     <ignored path="$PROJECT_DIR$/target/" />
72
           </provider>
51
           </provider>
73
         </entry>
52
         </entry>
74
       </file>
53
       </file>
75
-      <file leaf-file-name="TestConstants.java" pinned="false" current-in-tab="false">
54
+      <file leaf-file-name="TestConstants.java" pinned="false" current-in-tab="true">
76
         <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodewilmington/lambdas/exercises/TestConstants.java">
55
         <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodewilmington/lambdas/exercises/TestConstants.java">
77
           <provider selected="true" editor-type-id="text-editor">
56
           <provider selected="true" editor-type-id="text-editor">
78
             <state relative-caret-position="90">
57
             <state relative-caret-position="90">
79
-              <caret line="6" column="28" lean-forward="false" selection-start-line="6" selection-start-column="28" selection-end-line="6" selection-end-column="28" />
58
+              <caret line="6" column="30" lean-forward="false" selection-start-line="6" selection-start-column="30" selection-end-line="6" selection-end-column="30" />
80
               <folding />
59
               <folding />
81
             </state>
60
             </state>
82
           </provider>
61
           </provider>
102
           </provider>
81
           </provider>
103
         </entry>
82
         </entry>
104
       </file>
83
       </file>
105
-      <file leaf-file-name="StreamConverter.java" pinned="false" current-in-tab="true">
84
+      <file leaf-file-name="StreamConverter.java" pinned="false" current-in-tab="false">
106
         <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/StreamConverter.java">
85
         <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/StreamConverter.java">
107
           <provider selected="true" editor-type-id="text-editor">
86
           <provider selected="true" editor-type-id="text-editor">
108
-            <state relative-caret-position="253">
109
-              <caret line="29" column="31" lean-forward="true" selection-start-line="29" selection-start-column="31" selection-end-line="29" selection-end-column="31" />
87
+            <state relative-caret-position="362">
88
+              <caret line="33" column="5" lean-forward="true" selection-start-line="33" selection-start-column="5" selection-end-line="33" selection-end-column="5" />
89
+              <folding>
90
+                <element signature="imports" expanded="true" />
91
+                <element signature="e#876#877#0" expanded="true" />
92
+                <element signature="e#914#915#0" expanded="true" />
93
+                <element signature="e#966#967#0" expanded="true" />
94
+                <element signature="e#1013#1014#0" expanded="true" />
95
+                <element signature="e#1058#1059#0" expanded="true" />
96
+                <element signature="e#1114#1115#0" expanded="true" />
97
+              </folding>
98
+            </state>
99
+          </provider>
100
+        </entry>
101
+      </file>
102
+      <file leaf-file-name="ListConverter.java" pinned="false" current-in-tab="false">
103
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/ListConverter.java">
104
+          <provider selected="true" editor-type-id="text-editor">
105
+            <state relative-caret-position="255">
106
+              <caret line="19" column="49" lean-forward="false" selection-start-line="19" selection-start-column="49" selection-end-line="19" selection-end-column="49" />
110
               <folding>
107
               <folding>
111
                 <element signature="imports" expanded="true" />
108
                 <element signature="imports" expanded="true" />
112
-                <element signature="e#899#900#0" expanded="true" />
113
-                <element signature="e#937#938#0" expanded="true" />
114
-                <element signature="e#1081#1082#0" expanded="true" />
115
-                <element signature="e#1137#1138#0" expanded="true" />
116
               </folding>
109
               </folding>
117
             </state>
110
             </state>
118
           </provider>
111
           </provider>
201
         <option value="$PROJECT_DIR$/src/test/java/com/zipcodewilmington/lambdas/exercises/TestSuiteConversionRegression.java" />
194
         <option value="$PROJECT_DIR$/src/test/java/com/zipcodewilmington/lambdas/exercises/TestSuiteConversionRegression.java" />
202
         <option value="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/ListConverter.java" />
195
         <option value="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/ListConverter.java" />
203
         <option value="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/ArrayConverter.java" />
196
         <option value="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/ArrayConverter.java" />
204
-        <option value="$PROJECT_DIR$/src/test/java/com/zipcodewilmington/lambdas/exercises/TestConstants.java" />
205
         <option value="$PROJECT_DIR$/src/test/java/com/zipcodewilmington/lambdas/exercises/TestConversionAgent.java" />
197
         <option value="$PROJECT_DIR$/src/test/java/com/zipcodewilmington/lambdas/exercises/TestConversionAgent.java" />
206
         <option value="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/ConversionAgent.java" />
198
         <option value="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/ConversionAgent.java" />
207
         <option value="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/StreamConverter.java" />
199
         <option value="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/StreamConverter.java" />
200
+        <option value="$PROJECT_DIR$/src/test/java/com/zipcodewilmington/lambdas/exercises/TestConstants.java" />
208
       </list>
201
       </list>
209
     </option>
202
     </option>
210
   </component>
203
   </component>
838
     <servers />
831
     <servers />
839
   </component>
832
   </component>
840
   <component name="TestHistory">
833
   <component name="TestHistory">
841
-    <history-entry file="TestSuiteConversionRegression - 2017.05.25 at 16h 11m 28s.xml">
834
+    <history-entry file="TestSuiteConversionRegression - 2017.05.25 at 16h 24m 15s.xml">
842
       <configuration name="TestSuiteConversionRegression" configurationId="JUnit" />
835
       <configuration name="TestSuiteConversionRegression" configurationId="JUnit" />
843
     </history-entry>
836
     </history-entry>
844
-    <history-entry file="TestSuiteConversionRegression - 2017.05.25 at 16h 11m 35s.xml">
837
+    <history-entry file="TestSuiteConversionRegression - 2017.05.25 at 16h 28m 10s.xml">
845
       <configuration name="TestSuiteConversionRegression" configurationId="JUnit" />
838
       <configuration name="TestSuiteConversionRegression" configurationId="JUnit" />
846
     </history-entry>
839
     </history-entry>
847
-    <history-entry file="TestSuiteConversionRegression - 2017.05.25 at 16h 13m 13s.xml">
840
+    <history-entry file="TestSuiteConversionRegression - 2017.05.25 at 16h 28m 27s.xml">
848
       <configuration name="TestSuiteConversionRegression" configurationId="JUnit" />
841
       <configuration name="TestSuiteConversionRegression" configurationId="JUnit" />
849
     </history-entry>
842
     </history-entry>
850
-    <history-entry file="TestSuiteConversionRegression - 2017.05.25 at 16h 13m 53s.xml">
843
+    <history-entry file="TestSuiteConversionRegression - 2017.05.25 at 16h 28m 39s.xml">
851
       <configuration name="TestSuiteConversionRegression" configurationId="JUnit" />
844
       <configuration name="TestSuiteConversionRegression" configurationId="JUnit" />
852
     </history-entry>
845
     </history-entry>
853
-    <history-entry file="TestSuiteConversionRegression - 2017.05.25 at 16h 18m 38s.xml">
846
+    <history-entry file="TestSuiteConversionRegression - 2017.05.25 at 16h 29m 20s.xml">
854
       <configuration name="TestSuiteConversionRegression" configurationId="JUnit" />
847
       <configuration name="TestSuiteConversionRegression" configurationId="JUnit" />
855
     </history-entry>
848
     </history-entry>
856
-    <history-entry file="TestSuiteConversionRegression - 2017.05.25 at 16h 19m 30s.xml">
849
+    <history-entry file="TestSuiteConversionRegression - 2017.05.25 at 16h 29m 45s.xml">
857
       <configuration name="TestSuiteConversionRegression" configurationId="JUnit" />
850
       <configuration name="TestSuiteConversionRegression" configurationId="JUnit" />
858
     </history-entry>
851
     </history-entry>
859
-    <history-entry file="TestSuiteConversionRegression - 2017.05.25 at 16h 20m 18s.xml">
852
+    <history-entry file="TestSuiteConversionRegression - 2017.05.25 at 16h 32m 52s.xml">
860
       <configuration name="TestSuiteConversionRegression" configurationId="JUnit" />
853
       <configuration name="TestSuiteConversionRegression" configurationId="JUnit" />
861
     </history-entry>
854
     </history-entry>
862
-    <history-entry file="TestSuiteConversionRegression - 2017.05.25 at 16h 21m 16s.xml">
855
+    <history-entry file="TestSuiteConversionRegression - 2017.05.25 at 16h 34m 28s.xml">
863
       <configuration name="TestSuiteConversionRegression" configurationId="JUnit" />
856
       <configuration name="TestSuiteConversionRegression" configurationId="JUnit" />
864
     </history-entry>
857
     </history-entry>
865
-    <history-entry file="TestSuiteConversionRegression - 2017.05.25 at 16h 22m 41s.xml">
858
+    <history-entry file="TestSuiteConversionRegression - 2017.05.25 at 16h 41m 35s.xml">
866
       <configuration name="TestSuiteConversionRegression" configurationId="JUnit" />
859
       <configuration name="TestSuiteConversionRegression" configurationId="JUnit" />
867
     </history-entry>
860
     </history-entry>
868
-    <history-entry file="TestSuiteConversionRegression - 2017.05.25 at 16h 23m 56s.xml">
861
+    <history-entry file="TestSuiteConversionRegression - 2017.05.25 at 16h 42m 16s.xml">
869
       <configuration name="TestSuiteConversionRegression" configurationId="JUnit" />
862
       <configuration name="TestSuiteConversionRegression" configurationId="JUnit" />
870
     </history-entry>
863
     </history-entry>
871
   </component>
864
   </component>
882
       <window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
875
       <window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
883
       <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
876
       <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
884
       <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
877
       <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
885
-      <window_info id="Run" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.40518135" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
878
+      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.40518135" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
886
       <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
879
       <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
887
       <window_info id="Properties" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
880
       <window_info id="Properties" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
888
-      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3298647" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
881
+      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32953367" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
889
       <window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
882
       <window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
890
       <window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
883
       <window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
891
       <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.23801917" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
884
       <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.23801917" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
1165
         </state>
1158
         </state>
1166
       </provider>
1159
       </provider>
1167
     </entry>
1160
     </entry>
1168
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/ListConverter.java">
1169
-      <provider selected="true" editor-type-id="text-editor">
1170
-        <state relative-caret-position="240">
1171
-          <caret line="19" column="49" lean-forward="false" selection-start-line="19" selection-start-column="49" selection-end-line="19" selection-end-column="49" />
1172
-          <folding>
1173
-            <element signature="imports" expanded="true" />
1174
-          </folding>
1175
-        </state>
1176
-      </provider>
1177
-    </entry>
1178
     <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/StreamMap.java">
1161
     <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/StreamMap.java">
1179
       <provider selected="true" editor-type-id="text-editor">
1162
       <provider selected="true" editor-type-id="text-editor">
1180
         <state relative-caret-position="330">
1163
         <state relative-caret-position="330">
1255
         </state>
1238
         </state>
1256
       </provider>
1239
       </provider>
1257
     </entry>
1240
     </entry>
1258
-    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodewilmington/lambdas/exercises/TestConstants.java">
1259
-      <provider selected="true" editor-type-id="text-editor">
1260
-        <state relative-caret-position="90">
1261
-          <caret line="6" column="28" lean-forward="false" selection-start-line="6" selection-start-column="28" selection-end-line="6" selection-end-column="28" />
1262
-          <folding />
1263
-        </state>
1264
-      </provider>
1265
-    </entry>
1266
     <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/ConversionAgent.java">
1241
     <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/ConversionAgent.java">
1267
       <provider selected="true" editor-type-id="text-editor">
1242
       <provider selected="true" editor-type-id="text-editor">
1268
         <state relative-caret-position="210">
1243
         <state relative-caret-position="210">
1273
         </state>
1248
         </state>
1274
       </provider>
1249
       </provider>
1275
     </entry>
1250
     </entry>
1276
-    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodewilmington/lambdas/exercises/TestConversionAgent.java">
1251
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/ListConverter.java">
1277
       <provider selected="true" editor-type-id="text-editor">
1252
       <provider selected="true" editor-type-id="text-editor">
1278
-        <state relative-caret-position="300">
1279
-          <caret line="66" column="16" lean-forward="false" selection-start-line="66" selection-start-column="16" selection-end-line="66" selection-end-column="16" />
1253
+        <state relative-caret-position="255">
1254
+          <caret line="19" column="49" lean-forward="false" selection-start-line="19" selection-start-column="49" selection-end-line="19" selection-end-column="49" />
1280
           <folding>
1255
           <folding>
1281
             <element signature="imports" expanded="true" />
1256
             <element signature="imports" expanded="true" />
1282
           </folding>
1257
           </folding>
1285
     </entry>
1260
     </entry>
1286
     <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/StreamConverter.java">
1261
     <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/lambdas/exercises/StreamConverter.java">
1287
       <provider selected="true" editor-type-id="text-editor">
1262
       <provider selected="true" editor-type-id="text-editor">
1288
-        <state relative-caret-position="253">
1289
-          <caret line="29" column="31" lean-forward="true" selection-start-line="29" selection-start-column="31" selection-end-line="29" selection-end-column="31" />
1263
+        <state relative-caret-position="362">
1264
+          <caret line="33" column="5" lean-forward="true" selection-start-line="33" selection-start-column="5" selection-end-line="33" selection-end-column="5" />
1265
+          <folding>
1266
+            <element signature="imports" expanded="true" />
1267
+            <element signature="e#876#877#0" expanded="true" />
1268
+            <element signature="e#914#915#0" expanded="true" />
1269
+            <element signature="e#966#967#0" expanded="true" />
1270
+            <element signature="e#1013#1014#0" expanded="true" />
1271
+            <element signature="e#1058#1059#0" expanded="true" />
1272
+            <element signature="e#1114#1115#0" expanded="true" />
1273
+          </folding>
1274
+        </state>
1275
+      </provider>
1276
+    </entry>
1277
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodewilmington/lambdas/exercises/TestConversionAgent.java">
1278
+      <provider selected="true" editor-type-id="text-editor">
1279
+        <state relative-caret-position="300">
1280
+          <caret line="66" column="16" lean-forward="false" selection-start-line="66" selection-start-column="16" selection-end-line="66" selection-end-column="16" />
1290
           <folding>
1281
           <folding>
1291
             <element signature="imports" expanded="true" />
1282
             <element signature="imports" expanded="true" />
1292
-            <element signature="e#899#900#0" expanded="true" />
1293
-            <element signature="e#937#938#0" expanded="true" />
1294
-            <element signature="e#1081#1082#0" expanded="true" />
1295
-            <element signature="e#1137#1138#0" expanded="true" />
1296
           </folding>
1283
           </folding>
1297
         </state>
1284
         </state>
1298
       </provider>
1285
       </provider>
1299
     </entry>
1286
     </entry>
1287
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodewilmington/lambdas/exercises/TestConstants.java">
1288
+      <provider selected="true" editor-type-id="text-editor">
1289
+        <state relative-caret-position="90">
1290
+          <caret line="6" column="30" lean-forward="false" selection-start-line="6" selection-start-column="30" selection-end-line="6" selection-end-column="30" />
1291
+          <folding />
1292
+        </state>
1293
+      </provider>
1294
+    </entry>
1300
   </component>
1295
   </component>
1301
   <component name="masterDetails">
1296
   <component name="masterDetails">
1302
     <states>
1297
     <states>

src/main/java/com/zipcodewilmington/lambdas/StreamFilter.java → src/main/java/com/zipcodewilmington/streams/StreamFilter.java 查看文件

1
-package com.zipcodewilmington.lambdas;
1
+package com.zipcodewilmington.streams;
2
 
2
 
3
-import com.zipcodewilmington.lambdas.anthropoid.Person;
4
-import com.zipcodewilmington.lambdas.anthropoid.PersonFactory;
3
+import com.zipcodewilmington.streams.anthropoid.Person;
4
+import com.zipcodewilmington.streams.anthropoid.PersonFactory;
5
 
5
 
6
 import java.util.List;
6
 import java.util.List;
7
 import java.util.stream.Collectors;
7
 import java.util.stream.Collectors;

src/main/java/com/zipcodewilmington/lambdas/StreamMap.java → src/main/java/com/zipcodewilmington/streams/StreamMap.java 查看文件

1
-package com.zipcodewilmington.lambdas;
1
+package com.zipcodewilmington.streams;
2
 
2
 
3
-import java.util.ArrayList;
4
-import java.util.Arrays;
5
-import java.util.List;
6
-import java.util.stream.Collectors;
7
 import java.util.stream.Stream;
3
 import java.util.stream.Stream;
8
 
4
 
9
 /**
5
 /**

src/main/java/com/zipcodewilmington/lambdas/anthropoid/Person.java → src/main/java/com/zipcodewilmington/streams/anthropoid/Person.java 查看文件

1
-package com.zipcodewilmington.lambdas.anthropoid;
1
+package com.zipcodewilmington.streams.anthropoid;
2
 
2
 
3
 import java.util.Date;
3
 import java.util.Date;
4
 
4
 

src/main/java/com/zipcodewilmington/lambdas/anthropoid/PersonFactory.java → src/main/java/com/zipcodewilmington/streams/anthropoid/PersonFactory.java 查看文件

1
-package com.zipcodewilmington.lambdas.anthropoid;
1
+package com.zipcodewilmington.streams.anthropoid;
2
 
2
 
3
-import com.zipcodewilmington.lambdas.tools.RandomUtils;
4
-import com.zipcodewilmington.lambdas.tools.StringUtils;
3
+import com.zipcodewilmington.streams.tools.RandomUtils;
4
+import com.zipcodewilmington.streams.tools.StringUtils;
5
 
5
 
6
 import java.util.Date;
6
 import java.util.Date;
7
 import java.util.List;
7
 import java.util.List;

src/main/java/com/zipcodewilmington/lambdas/exercises/ArrayConverter.java → src/main/java/com/zipcodewilmington/streams/exercises/ArrayConverter.java 查看文件

1
-package com.zipcodewilmington.lambdas.exercises;
1
+package com.zipcodewilmington.streams.exercises;
2
 
2
 
3
-import com.zipcodewilmington.lambdas.anthropoid.Person;
4
-import com.zipcodewilmington.lambdas.anthropoid.PersonFactory;
3
+import com.zipcodewilmington.streams.anthropoid.Person;
4
+import com.zipcodewilmington.streams.anthropoid.PersonFactory;
5
 
5
 
6
 import java.util.Arrays;
6
 import java.util.Arrays;
7
 import java.util.List;
7
 import java.util.List;

src/main/java/com/zipcodewilmington/lambdas/exercises/ConversionAgent.java → src/main/java/com/zipcodewilmington/streams/exercises/ConversionAgent.java 查看文件

1
-package com.zipcodewilmington.lambdas.exercises;
1
+package com.zipcodewilmington.streams.exercises;
2
 
2
 
3
-import com.zipcodewilmington.lambdas.anthropoid.Person;
3
+import com.zipcodewilmington.streams.anthropoid.Person;
4
 
4
 
5
 import java.util.List;
5
 import java.util.List;
6
 import java.util.function.Function;
6
 import java.util.function.Function;

src/main/java/com/zipcodewilmington/lambdas/exercises/ListConverter.java → src/main/java/com/zipcodewilmington/streams/exercises/ListConverter.java 查看文件

1
-package com.zipcodewilmington.lambdas.exercises;
1
+package com.zipcodewilmington.streams.exercises;
2
 
2
 
3
-import com.zipcodewilmington.lambdas.anthropoid.Person;
4
-import com.zipcodewilmington.lambdas.anthropoid.PersonFactory;
3
+import com.zipcodewilmington.streams.anthropoid.Person;
4
+import com.zipcodewilmington.streams.anthropoid.PersonFactory;
5
 
5
 
6
 import java.util.List;
6
 import java.util.List;
7
 import java.util.stream.Stream;
7
 import java.util.stream.Stream;

src/main/java/com/zipcodewilmington/lambdas/exercises/StreamConverter.java → src/main/java/com/zipcodewilmington/streams/exercises/StreamConverter.java 查看文件

1
-package com.zipcodewilmington.lambdas.exercises;
1
+package com.zipcodewilmington.streams.exercises;
2
 
2
 
3
-import com.zipcodewilmington.lambdas.anthropoid.Person;
4
-import com.zipcodewilmington.lambdas.anthropoid.PersonFactory;
3
+import com.zipcodewilmington.streams.anthropoid.Person;
4
+import com.zipcodewilmington.streams.anthropoid.PersonFactory;
5
 
5
 
6
 import java.util.List;
6
 import java.util.List;
7
 import java.util.stream.Collectors;
7
 import java.util.stream.Collectors;
8
 import java.util.stream.Stream;
8
 import java.util.stream.Stream;
9
 
9
 
10
-import static java.lang.System.out;
11
-
12
 /**
10
 /**
13
  * Created by leon on 5/25/17.
11
  * Created by leon on 5/25/17.
14
  */
12
  */
15
 public final class StreamConverter extends ConversionAgent<Stream<Person>> {
13
 public final class StreamConverter extends ConversionAgent<Stream<Person>> {
16
-    List<Person> personList;
14
+    private final List<Person> personList;
17
     public StreamConverter(Stream<Person> people) {
15
     public StreamConverter(Stream<Person> people) {
18
         super(people);
16
         super(people);
19
         this.personList = super.people.collect(Collectors.toList());
17
         this.personList = super.people.collect(Collectors.toList());

src/main/java/com/zipcodewilmington/lambdas/tools/RandomUtils.java → src/main/java/com/zipcodewilmington/streams/tools/RandomUtils.java 查看文件

1
-package com.zipcodewilmington.lambdas.tools;
1
+package com.zipcodewilmington.streams.tools;
2
 
2
 
3
 import java.awt.*;
3
 import java.awt.*;
4
 import java.util.*;
4
 import java.util.*;

src/main/java/com/zipcodewilmington/lambdas/tools/ReflectionUtils.java → src/main/java/com/zipcodewilmington/streams/tools/ReflectionUtils.java 查看文件

1
-package com.zipcodewilmington.lambdas.tools;
1
+package com.zipcodewilmington.streams.tools;
2
 
2
 
3
 import java.lang.reflect.Field;
3
 import java.lang.reflect.Field;
4
 import java.util.HashMap;
4
 import java.util.HashMap;

src/main/java/com/zipcodewilmington/lambdas/tools/StringUtils.java → src/main/java/com/zipcodewilmington/streams/tools/StringUtils.java 查看文件

1
-package com.zipcodewilmington.lambdas.tools;
2
-
3
-import java.util.ArrayList;
4
-import java.util.List;
5
-import java.util.stream.Stream;
1
+package com.zipcodewilmington.streams.tools;
6
 
2
 
7
 /**
3
 /**
8
  * Created by leon on 5/24/17.
4
  * Created by leon on 5/24/17.

+ 0
- 8
src/test/java/com/zipcodewilmington/lambdas/exercises/TestConstants.java 查看文件

1
-package com.zipcodewilmington.lambdas.exercises;
2
-
3
-/**
4
- * Created by leon on 5/25/17.
5
- */
6
-public interface TestConstants {
7
-    int collectionSize = 999;
8
-}

+ 8
- 0
src/test/java/com/zipcodewilmington/streams/TestConstants.java 查看文件

1
+package com.zipcodewilmington.streams;
2
+
3
+/**
4
+ * Created by leon on 5/25/17.
5
+ */
6
+public interface TestConstants {
7
+    int collectionSize = 99999;
8
+}

src/test/java/com/zipcodewilmington/lambdas/TestPersonFactory.java → src/test/java/com/zipcodewilmington/streams/TestPersonFactory.java 查看文件

1
-package com.zipcodewilmington.lambdas;
1
+package com.zipcodewilmington.streams;
2
 
2
 
3
-import com.zipcodewilmington.lambdas.tools.ReflectionUtils;
4
-import com.zipcodewilmington.lambdas.anthropoid.Person;
5
-import com.zipcodewilmington.lambdas.anthropoid.PersonFactory;
3
+import com.zipcodewilmington.streams.tools.ReflectionUtils;
4
+import com.zipcodewilmington.streams.anthropoid.Person;
5
+import com.zipcodewilmington.streams.anthropoid.PersonFactory;
6
 import org.junit.Assert;
6
 import org.junit.Assert;
7
 import org.junit.Test;
7
 import org.junit.Test;
8
 
8
 
14
 /**
14
 /**
15
  * Created by leon on 5/24/17.
15
  * Created by leon on 5/24/17.
16
  */
16
  */
17
-public class TestPersonFactory {
17
+public class TestPersonFactory implements TestConstants{
18
     int collectionSize = 1000;
18
     int collectionSize = 1000;
19
 
19
 
20
     @Test
20
     @Test

src/test/java/com/zipcodewilmington/lambdas/TestStreamFilter.java → src/test/java/com/zipcodewilmington/streams/TestStreamFilter.java 查看文件

1
-package com.zipcodewilmington.lambdas;
1
+package com.zipcodewilmington.streams;
2
 
2
 
3
-import com.zipcodewilmington.lambdas.anthropoid.Person;
3
+import com.zipcodewilmington.streams.anthropoid.Person;
4
 import org.junit.Before;
4
 import org.junit.Before;
5
 import org.junit.Test;
5
 import org.junit.Test;
6
 
6
 

src/test/java/com/zipcodewilmington/lambdas/TestStreamMap.java → src/test/java/com/zipcodewilmington/streams/TestStreamMap.java 查看文件

1
-package com.zipcodewilmington.lambdas;
1
+package com.zipcodewilmington.streams;
2
 
2
 
3
 import org.junit.Test;
3
 import org.junit.Test;
4
 
4
 

src/test/java/com/zipcodewilmington/lambdas/TestSuiteFullRegression.java → src/test/java/com/zipcodewilmington/streams/TestSuiteFullRegression.java 查看文件

1
-package com.zipcodewilmington.lambdas;
1
+package com.zipcodewilmington.streams;
2
 
2
 
3
 import org.junit.runner.RunWith;
3
 import org.junit.runner.RunWith;
4
 import org.junit.runners.Suite;
4
 import org.junit.runners.Suite;

src/test/java/com/zipcodewilmington/lambdas/exercises/TestConversionAgent.java → src/test/java/com/zipcodewilmington/streams/exercises/TestConversionAgent.java 查看文件

1
-package com.zipcodewilmington.lambdas.exercises;
1
+package com.zipcodewilmington.streams.exercises;
2
 
2
 
3
-import com.zipcodewilmington.lambdas.anthropoid.Person;
3
+import com.zipcodewilmington.streams.anthropoid.Person;
4
 import org.junit.Assert;
4
 import org.junit.Assert;
5
 import org.junit.Before;
5
 import org.junit.Before;
6
 import org.junit.Test;
6
 import org.junit.Test;

src/test/java/com/zipcodewilmington/lambdas/exercises/TestConverterArray.java → src/test/java/com/zipcodewilmington/streams/exercises/TestConverterArray.java 查看文件

1
-package com.zipcodewilmington.lambdas.exercises;
1
+package com.zipcodewilmington.streams.exercises;
2
+
3
+import com.zipcodewilmington.streams.TestConstants;
2
 
4
 
3
 /**
5
 /**
4
  * Created by leon on 5/25/17.
6
  * Created by leon on 5/25/17.

src/test/java/com/zipcodewilmington/lambdas/exercises/TestConverterList.java → src/test/java/com/zipcodewilmington/streams/exercises/TestConverterList.java 查看文件

1
-package com.zipcodewilmington.lambdas.exercises;
1
+package com.zipcodewilmington.streams.exercises;
2
+
3
+import com.zipcodewilmington.streams.TestConstants;
2
 
4
 
3
 /**
5
 /**
4
  * Created by leon on 5/25/17.
6
  * Created by leon on 5/25/17.

src/test/java/com/zipcodewilmington/lambdas/exercises/TestConverterStream.java → src/test/java/com/zipcodewilmington/streams/exercises/TestConverterStream.java 查看文件

1
-package com.zipcodewilmington.lambdas.exercises;
1
+package com.zipcodewilmington.streams.exercises;
2
+
3
+import com.zipcodewilmington.streams.TestConstants;
2
 
4
 
3
 /**
5
 /**
4
  * Created by leon on 5/25/17.
6
  * Created by leon on 5/25/17.

src/test/java/com/zipcodewilmington/lambdas/exercises/TestSuiteConversionRegression.java → src/test/java/com/zipcodewilmington/streams/exercises/TestSuiteConversionRegression.java 查看文件

1
-package com.zipcodewilmington.lambdas.exercises;
1
+package com.zipcodewilmington.streams.exercises;
2
 
2
 
3
-import com.zipcodewilmington.lambdas.TestPersonFactory;
4
-import com.zipcodewilmington.lambdas.TestStreamFilter;
5
-import com.zipcodewilmington.lambdas.TestStreamMap;
6
 import org.junit.runner.RunWith;
3
 import org.junit.runner.RunWith;
7
 import org.junit.runners.Suite;
4
 import org.junit.runners.Suite;
8
 
5
 

二進制
target/classes/com/zipcodewilmington/lambdas/exercises/StreamConverter.class 查看文件


二進制
target/test-classes/com/zipcodewilmington/lambdas/exercises/TestConstants.class 查看文件


二進制
target/test-classes/com/zipcodewilmington/lambdas/exercises/TestConverterArray.class 查看文件


二進制
target/test-classes/com/zipcodewilmington/lambdas/exercises/TestConverterList.class 查看文件


二進制
target/test-classes/com/zipcodewilmington/lambdas/exercises/TestConverterStream.class 查看文件