David Thornley 6 gadus atpakaļ
vecāks
revīzija
a69e37b5e2

+ 17
- 0
.idea/ZCW-Lambdas.iml Parādīt failu

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

+ 16
- 0
.idea/compiler.xml Parādīt failu

@@ -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="ZCW-Lambdas" />
10
+      </profile>
11
+    </annotationProcessing>
12
+    <bytecodeTargetLevel>
13
+      <module name="ZCW-Lambdas" target="1.8" />
14
+    </bytecodeTargetLevel>
15
+  </component>
16
+</project>

+ 13
- 0
.idea/libraries/Maven__junit_junit_4_12.xml Parādīt failu

@@ -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 Parādīt failu

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

+ 16
- 0
.idea/misc.xml Parādīt failu

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

+ 8
- 0
.idea/modules.xml Parādīt failu

@@ -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$/.idea/ZCW-Lambdas.iml" filepath="$PROJECT_DIR$/.idea/ZCW-Lambdas.iml" />
6
+    </modules>
7
+  </component>
8
+</project>

+ 6
- 0
.idea/vcs.xml Parādīt failu

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

+ 537
- 0
.idea/workspace.xml Parādīt failu

@@ -0,0 +1,537 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="93ceae88-3f10-453c-bc73-29029aee6d13" name="Default" comment="" />
5
+    <ignored path="$PROJECT_DIR$/target/" />
6
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
7
+    <option name="TRACKING_ENABLED" value="true" />
8
+    <option name="SHOW_DIALOG" value="false" />
9
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11
+    <option name="LAST_RESOLUTION" value="IGNORE" />
12
+  </component>
13
+  <component name="FileEditorManager">
14
+    <leaf>
15
+      <file leaf-file-name="Person.java" pinned="false" current-in-tab="false">
16
+        <entry file="file://$PROJECT_DIR$/src/main/java/Person.java">
17
+          <provider selected="true" editor-type-id="text-editor">
18
+            <state relative-caret-position="150">
19
+              <caret line="10" column="7" selection-start-line="10" selection-start-column="7" selection-end-line="10" selection-end-column="7" />
20
+              <folding>
21
+                <element signature="e#434#435#0" expanded="true" />
22
+                <element signature="e#465#466#0" expanded="true" />
23
+                <element signature="e#497#498#0" expanded="true" />
24
+                <element signature="e#524#525#0" expanded="true" />
25
+                <element signature="e#564#565#0" expanded="true" />
26
+                <element signature="e#596#597#0" expanded="true" />
27
+                <element signature="e#634#635#0" expanded="true" />
28
+                <element signature="e#665#666#0" expanded="true" />
29
+                <element signature="e#716#717#0" expanded="true" />
30
+                <element signature="e#756#757#0" expanded="true" />
31
+                <element signature="e#786#787#0" expanded="true" />
32
+                <element signature="e#815#816#0" expanded="true" />
33
+                <element signature="e#856#857#0" expanded="true" />
34
+                <element signature="e#892#893#0" expanded="true" />
35
+                <element signature="e#931#932#0" expanded="true" />
36
+                <element signature="e#966#967#0" expanded="true" />
37
+                <element signature="e#1022#1023#0" expanded="true" />
38
+                <element signature="e#1070#1071#0" expanded="true" />
39
+                <element signature="e#1097#1098#0" expanded="true" />
40
+                <element signature="e#1169#1170#0" expanded="true" />
41
+              </folding>
42
+            </state>
43
+          </provider>
44
+        </entry>
45
+      </file>
46
+      <file leaf-file-name="PersonTest.java" pinned="false" current-in-tab="false">
47
+        <entry file="file://$PROJECT_DIR$/src/test/java/PersonTest.java">
48
+          <provider selected="true" editor-type-id="text-editor">
49
+            <state relative-caret-position="375">
50
+              <caret line="29" selection-start-line="29" selection-end-line="29" />
51
+            </state>
52
+          </provider>
53
+        </entry>
54
+      </file>
55
+      <file leaf-file-name="CheckPerson.java" pinned="false" current-in-tab="false">
56
+        <entry file="file://$PROJECT_DIR$/src/main/java/CheckPerson.java">
57
+          <provider selected="true" editor-type-id="text-editor">
58
+            <state relative-caret-position="60">
59
+              <caret line="4" column="1" selection-start-line="4" selection-start-column="1" selection-end-line="4" selection-end-column="1" />
60
+            </state>
61
+          </provider>
62
+        </entry>
63
+      </file>
64
+      <file leaf-file-name="MemberList.java" pinned="false" current-in-tab="false">
65
+        <entry file="file://$PROJECT_DIR$/src/main/java/MemberList.java">
66
+          <provider selected="true" editor-type-id="text-editor">
67
+            <state relative-caret-position="435">
68
+              <caret line="29" column="1" selection-start-line="29" selection-start-column="1" selection-end-line="29" selection-end-column="1" />
69
+              <folding>
70
+                <element signature="imports" expanded="true" />
71
+                <element signature="e#156#157#0" expanded="true" />
72
+                <element signature="e#199#200#0" expanded="true" />
73
+                <element signature="e#239#240#0" expanded="true" />
74
+                <element signature="e#285#286#0" expanded="true" />
75
+              </folding>
76
+            </state>
77
+          </provider>
78
+        </entry>
79
+      </file>
80
+      <file leaf-file-name="MemberListTest.java" pinned="false" current-in-tab="true">
81
+        <entry file="file://$PROJECT_DIR$/src/test/java/MemberListTest.java">
82
+          <provider selected="true" editor-type-id="text-editor">
83
+            <state relative-caret-position="435">
84
+              <caret line="31" column="27" selection-start-line="31" selection-start-column="27" selection-end-line="31" selection-end-column="27" />
85
+            </state>
86
+          </provider>
87
+        </entry>
88
+      </file>
89
+    </leaf>
90
+  </component>
91
+  <component name="FileTemplateManagerImpl">
92
+    <option name="RECENT_TEMPLATES">
93
+      <list>
94
+        <option value="Class" />
95
+        <option value="JUnit4 Test Class" />
96
+        <option value="Interface" />
97
+      </list>
98
+    </option>
99
+  </component>
100
+  <component name="Git.Settings">
101
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
102
+  </component>
103
+  <component name="IdeDocumentHistory">
104
+    <option name="CHANGED_PATHS">
105
+      <list>
106
+        <option value="$PROJECT_DIR$/src/main/java/Person.java" />
107
+        <option value="$PROJECT_DIR$/src/main/java/MemberList.java" />
108
+        <option value="$PROJECT_DIR$/src/test/java/MemberListTest.java" />
109
+        <option value="$PROJECT_DIR$/src/test/java/PersonTest.java" />
110
+        <option value="$PROJECT_DIR$/src/main/java/CheckPerson.java" />
111
+        <option value="$PROJECT_DIR$/pom.xml" />
112
+      </list>
113
+    </option>
114
+  </component>
115
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
116
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
117
+  <component name="JsGulpfileManager">
118
+    <detection-done>true</detection-done>
119
+    <sorting>DEFINITION_ORDER</sorting>
120
+  </component>
121
+  <component name="MavenImportPreferences">
122
+    <option name="importingSettings">
123
+      <MavenImportingSettings>
124
+        <option name="importAutomatically" value="true" />
125
+      </MavenImportingSettings>
126
+    </option>
127
+  </component>
128
+  <component name="NodePackageJsonFileManager">
129
+    <packageJsonPaths />
130
+  </component>
131
+  <component name="ProjectFrameBounds" extendedState="6">
132
+    <option name="x" value="-335" />
133
+    <option name="y" value="-1080" />
134
+    <option name="width" value="1920" />
135
+    <option name="height" value="1080" />
136
+  </component>
137
+  <component name="ProjectLevelVcsManager">
138
+    <ConfirmationsSetting value="1" id="Add" />
139
+  </component>
140
+  <component name="ProjectView">
141
+    <navigator proportions="" version="1">
142
+      <foldersAlwaysOnTop value="true" />
143
+    </navigator>
144
+    <panes>
145
+      <pane id="Scope" />
146
+      <pane id="AndroidView" />
147
+      <pane id="PackagesPane" />
148
+      <pane id="ProjectPane">
149
+        <subPane>
150
+          <expand>
151
+            <path>
152
+              <item name="ZCW-Lambdas" type="b2602c69:ProjectViewProjectNode" />
153
+              <item name="ZCW-Lambdas" type="462c0819:PsiDirectoryNode" />
154
+            </path>
155
+            <path>
156
+              <item name="ZCW-Lambdas" type="b2602c69:ProjectViewProjectNode" />
157
+              <item name="ZCW-Lambdas" type="462c0819:PsiDirectoryNode" />
158
+              <item name="src" type="462c0819:PsiDirectoryNode" />
159
+            </path>
160
+            <path>
161
+              <item name="ZCW-Lambdas" type="b2602c69:ProjectViewProjectNode" />
162
+              <item name="ZCW-Lambdas" type="462c0819:PsiDirectoryNode" />
163
+              <item name="src" type="462c0819:PsiDirectoryNode" />
164
+              <item name="main" type="462c0819:PsiDirectoryNode" />
165
+            </path>
166
+            <path>
167
+              <item name="ZCW-Lambdas" type="b2602c69:ProjectViewProjectNode" />
168
+              <item name="ZCW-Lambdas" type="462c0819:PsiDirectoryNode" />
169
+              <item name="src" type="462c0819:PsiDirectoryNode" />
170
+              <item name="main" type="462c0819:PsiDirectoryNode" />
171
+              <item name="java" type="462c0819:PsiDirectoryNode" />
172
+            </path>
173
+            <path>
174
+              <item name="ZCW-Lambdas" type="b2602c69:ProjectViewProjectNode" />
175
+              <item name="ZCW-Lambdas" type="462c0819:PsiDirectoryNode" />
176
+              <item name="src" type="462c0819:PsiDirectoryNode" />
177
+              <item name="test" type="462c0819:PsiDirectoryNode" />
178
+            </path>
179
+            <path>
180
+              <item name="ZCW-Lambdas" type="b2602c69:ProjectViewProjectNode" />
181
+              <item name="ZCW-Lambdas" type="462c0819:PsiDirectoryNode" />
182
+              <item name="src" type="462c0819:PsiDirectoryNode" />
183
+              <item name="test" type="462c0819:PsiDirectoryNode" />
184
+              <item name="java" type="462c0819:PsiDirectoryNode" />
185
+            </path>
186
+          </expand>
187
+          <select />
188
+        </subPane>
189
+      </pane>
190
+    </panes>
191
+  </component>
192
+  <component name="PropertiesComponent">
193
+    <property name="WebServerToolWindowFactoryState" value="false" />
194
+    <property name="aspect.path.notification.shown" value="true" />
195
+    <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
196
+    <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrarySuperClass.JUnit4" value="" />
197
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
198
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
199
+    <property name="project.structure.last.edited" value="Modules" />
200
+    <property name="project.structure.proportion" value="0.15" />
201
+    <property name="project.structure.side.proportion" value="0.2" />
202
+    <property name="settings.editor.selected.configurable" value="preferences.keymap" />
203
+  </component>
204
+  <component name="RecentsManager">
205
+    <key name="CreateTestDialog.RecentsKey">
206
+      <recent name="" />
207
+    </key>
208
+    <key name="CreateTestDialog.Recents.Supers">
209
+      <recent name="" />
210
+    </key>
211
+  </component>
212
+  <component name="RunDashboard">
213
+    <option name="ruleStates">
214
+      <list>
215
+        <RuleState>
216
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
217
+        </RuleState>
218
+        <RuleState>
219
+          <option name="name" value="StatusDashboardGroupingRule" />
220
+        </RuleState>
221
+      </list>
222
+    </option>
223
+  </component>
224
+  <component name="RunManager" selected="JUnit.MemberListTest">
225
+    <configuration default="true" type="Application" factoryName="Application">
226
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
227
+    </configuration>
228
+    <configuration name="MemberListTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
229
+      <module name="ZCW-Lambdas" />
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="MemberListTest" />
234
+      <option name="METHOD_NAME" />
235
+      <option name="TEST_OBJECT" value="class" />
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="PersonTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
246
+      <module name="ZCW-Lambdas" />
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="PersonTest" />
251
+      <option name="METHOD_NAME" />
252
+      <option name="TEST_OBJECT" value="class" />
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 default="true" type="JUnit" factoryName="JUnit">
263
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
264
+      <option name="ALTERNATIVE_JRE_PATH" />
265
+      <option name="PACKAGE_NAME" />
266
+      <option name="MAIN_CLASS_NAME" />
267
+      <option name="METHOD_NAME" />
268
+      <option name="TEST_OBJECT" value="class" />
269
+      <option name="VM_PARAMETERS" value="-ea" />
270
+      <option name="PARAMETERS" />
271
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
272
+      <option name="PASS_PARENT_ENVS" value="true" />
273
+      <option name="TEST_SEARCH_SCOPE">
274
+        <value defaultName="singleModule" />
275
+      </option>
276
+      <patterns />
277
+    </configuration>
278
+    <configuration default="true" type="TestNG" factoryName="TestNG">
279
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
280
+      <option name="ALTERNATIVE_JRE_PATH" />
281
+      <option name="SUITE_NAME" />
282
+      <option name="PACKAGE_NAME" />
283
+      <option name="MAIN_CLASS_NAME" />
284
+      <option name="METHOD_NAME" />
285
+      <option name="GROUP_NAME" />
286
+      <option name="TEST_OBJECT" value="CLASS" />
287
+      <option name="VM_PARAMETERS" value="-ea" />
288
+      <option name="PARAMETERS" />
289
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
290
+      <option name="OUTPUT_DIRECTORY" />
291
+      <option name="PASS_PARENT_ENVS" value="true" />
292
+      <option name="TEST_SEARCH_SCOPE">
293
+        <value defaultName="singleModule" />
294
+      </option>
295
+      <option name="USE_DEFAULT_REPORTERS" value="false" />
296
+      <option name="PROPERTIES_FILE" />
297
+      <properties />
298
+      <listeners />
299
+    </configuration>
300
+    <list>
301
+      <item itemvalue="JUnit.PersonTest" />
302
+      <item itemvalue="JUnit.MemberListTest" />
303
+    </list>
304
+    <recent_temporary>
305
+      <list>
306
+        <item itemvalue="JUnit.MemberListTest" />
307
+        <item itemvalue="JUnit.PersonTest" />
308
+      </list>
309
+    </recent_temporary>
310
+  </component>
311
+  <component name="SvnConfiguration">
312
+    <configuration />
313
+  </component>
314
+  <component name="TaskManager">
315
+    <task active="true" id="Default" summary="Default task">
316
+      <changelist id="93ceae88-3f10-453c-bc73-29029aee6d13" name="Default" comment="" />
317
+      <created>1530046860265</created>
318
+      <option name="number" value="Default" />
319
+      <option name="presentableId" value="Default" />
320
+      <updated>1530046860265</updated>
321
+      <workItem from="1530046864576" duration="794000" />
322
+    </task>
323
+    <servers />
324
+  </component>
325
+  <component name="TestHistory">
326
+    <history-entry file="PersonTest - 2018.06.26 at 17h 10m 32s.xml">
327
+      <configuration name="PersonTest" configurationId="JUnit" />
328
+    </history-entry>
329
+    <history-entry file="MemberListTest - 2018.06.26 at 17h 10m 43s.xml">
330
+      <configuration name="MemberListTest" configurationId="JUnit" />
331
+    </history-entry>
332
+  </component>
333
+  <component name="TimeTrackingManager">
334
+    <option name="totallyTimeSpent" value="794000" />
335
+  </component>
336
+  <component name="ToolWindowManager">
337
+    <frame x="-335" y="-1057" width="1920" height="1057" extended-state="6" />
338
+    <editor active="true" />
339
+    <layout>
340
+      <window_info anchor="right" id="Palette" />
341
+      <window_info anchor="bottom" id="TODO" order="6" />
342
+      <window_info anchor="bottom" id="Messages" weight="0.32916668" />
343
+      <window_info anchor="right" id="Palette&#9;" />
344
+      <window_info id="Image Layers" />
345
+      <window_info anchor="right" id="Capture Analysis" />
346
+      <window_info anchor="bottom" id="Event Log" side_tool="true" />
347
+      <window_info anchor="right" id="Maven Projects" />
348
+      <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
349
+      <window_info anchor="bottom" id="Run" order="2" weight="0.32916668" />
350
+      <window_info anchor="bottom" id="Version Control" />
351
+      <window_info anchor="bottom" id="Terminal" />
352
+      <window_info id="Capture Tool" />
353
+      <window_info id="Designer" />
354
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.25" />
355
+      <window_info anchor="right" id="Database" />
356
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
357
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
358
+      <window_info id="UI Designer" />
359
+      <window_info anchor="right" id="Theme Preview" />
360
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
361
+      <window_info id="Favorites" side_tool="true" />
362
+      <window_info anchor="bottom" id="Find" order="1" />
363
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
364
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
365
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
366
+      <window_info anchor="bottom" id="Message" order="0" />
367
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
368
+    </layout>
369
+  </component>
370
+  <component name="TypeScriptGeneratedFilesManager">
371
+    <option name="version" value="1" />
372
+  </component>
373
+  <component name="VcsContentAnnotationSettings">
374
+    <option name="myLimit" value="2678400000" />
375
+  </component>
376
+  <component name="editorHistoryManager">
377
+    <entry file="file://$PROJECT_DIR$/src/main/java/Person.java">
378
+      <provider selected="true" editor-type-id="text-editor">
379
+        <state relative-caret-position="150">
380
+          <caret line="10" column="7" selection-start-line="10" selection-start-column="7" selection-end-line="10" selection-end-column="7" />
381
+          <folding>
382
+            <element signature="e#434#435#0" expanded="true" />
383
+            <element signature="e#465#466#0" expanded="true" />
384
+            <element signature="e#497#498#0" expanded="true" />
385
+            <element signature="e#524#525#0" expanded="true" />
386
+            <element signature="e#564#565#0" expanded="true" />
387
+            <element signature="e#596#597#0" expanded="true" />
388
+            <element signature="e#634#635#0" expanded="true" />
389
+            <element signature="e#665#666#0" expanded="true" />
390
+            <element signature="e#716#717#0" expanded="true" />
391
+            <element signature="e#756#757#0" expanded="true" />
392
+            <element signature="e#786#787#0" expanded="true" />
393
+            <element signature="e#815#816#0" expanded="true" />
394
+            <element signature="e#856#857#0" expanded="true" />
395
+            <element signature="e#892#893#0" expanded="true" />
396
+            <element signature="e#931#932#0" expanded="true" />
397
+            <element signature="e#966#967#0" expanded="true" />
398
+            <element signature="e#1022#1023#0" expanded="true" />
399
+            <element signature="e#1070#1071#0" expanded="true" />
400
+            <element signature="e#1097#1098#0" expanded="true" />
401
+            <element signature="e#1169#1170#0" expanded="true" />
402
+          </folding>
403
+        </state>
404
+      </provider>
405
+    </entry>
406
+    <entry file="file://$PROJECT_DIR$/pom.xml">
407
+      <provider selected="true" editor-type-id="text-editor">
408
+        <state relative-caret-position="225">
409
+          <caret line="15" column="12" selection-start-line="15" selection-start-column="12" selection-end-line="15" selection-end-column="12" />
410
+        </state>
411
+      </provider>
412
+    </entry>
413
+    <entry file="file://$PROJECT_DIR$/src/test/java/PersonTest.java">
414
+      <provider selected="true" editor-type-id="text-editor">
415
+        <state relative-caret-position="375">
416
+          <caret line="29" selection-start-line="29" selection-end-line="29" />
417
+        </state>
418
+      </provider>
419
+    </entry>
420
+    <entry file="file://$PROJECT_DIR$/src/main/java/CheckPerson.java">
421
+      <provider selected="true" editor-type-id="text-editor">
422
+        <state relative-caret-position="60">
423
+          <caret line="4" column="1" selection-start-line="4" selection-start-column="1" selection-end-line="4" selection-end-column="1" />
424
+        </state>
425
+      </provider>
426
+    </entry>
427
+    <entry file="file://$PROJECT_DIR$/src/main/java/MemberList.java">
428
+      <provider selected="true" editor-type-id="text-editor">
429
+        <state relative-caret-position="435">
430
+          <caret line="29" column="1" selection-start-line="29" selection-start-column="1" selection-end-line="29" selection-end-column="1" />
431
+          <folding>
432
+            <element signature="imports" expanded="true" />
433
+            <element signature="e#156#157#0" expanded="true" />
434
+            <element signature="e#199#200#0" expanded="true" />
435
+            <element signature="e#239#240#0" expanded="true" />
436
+            <element signature="e#285#286#0" expanded="true" />
437
+          </folding>
438
+        </state>
439
+      </provider>
440
+    </entry>
441
+    <entry file="file://$PROJECT_DIR$/src/test/java/MemberListTest.java">
442
+      <provider selected="true" editor-type-id="text-editor">
443
+        <state relative-caret-position="435">
444
+          <caret line="31" column="27" selection-start-line="31" selection-start-column="27" selection-end-line="31" selection-end-column="27" />
445
+        </state>
446
+      </provider>
447
+    </entry>
448
+  </component>
449
+  <component name="masterDetails">
450
+    <states>
451
+      <state key="ArtifactsStructureConfigurable.UI">
452
+        <settings>
453
+          <artifact-editor />
454
+          <splitter-proportions>
455
+            <option name="proportions">
456
+              <list>
457
+                <option value="0.2" />
458
+              </list>
459
+            </option>
460
+          </splitter-proportions>
461
+        </settings>
462
+      </state>
463
+      <state key="FacetStructureConfigurable.UI">
464
+        <settings>
465
+          <last-edited>No facets are configured</last-edited>
466
+          <splitter-proportions>
467
+            <option name="proportions">
468
+              <list>
469
+                <option value="0.2" />
470
+              </list>
471
+            </option>
472
+          </splitter-proportions>
473
+        </settings>
474
+      </state>
475
+      <state key="GlobalLibrariesConfigurable.UI">
476
+        <settings>
477
+          <splitter-proportions>
478
+            <option name="proportions">
479
+              <list>
480
+                <option value="0.2" />
481
+              </list>
482
+            </option>
483
+          </splitter-proportions>
484
+        </settings>
485
+      </state>
486
+      <state key="JdkListConfigurable.UI">
487
+        <settings>
488
+          <last-edited>1.8</last-edited>
489
+          <splitter-proportions>
490
+            <option name="proportions">
491
+              <list>
492
+                <option value="0.2" />
493
+              </list>
494
+            </option>
495
+          </splitter-proportions>
496
+        </settings>
497
+      </state>
498
+      <state key="ModuleStructureConfigurable.UI">
499
+        <settings>
500
+          <last-edited>ZCW-Lambdas</last-edited>
501
+          <splitter-proportions>
502
+            <option name="proportions">
503
+              <list>
504
+                <option value="0.2" />
505
+                <option value="0.6" />
506
+              </list>
507
+            </option>
508
+          </splitter-proportions>
509
+        </settings>
510
+      </state>
511
+      <state key="ProjectJDKs.UI">
512
+        <settings>
513
+          <last-edited>1.8</last-edited>
514
+          <splitter-proportions>
515
+            <option name="proportions">
516
+              <list>
517
+                <option value="0.2" />
518
+              </list>
519
+            </option>
520
+          </splitter-proportions>
521
+        </settings>
522
+      </state>
523
+      <state key="ProjectLibrariesConfigurable.UI">
524
+        <settings>
525
+          <last-edited>Maven: junit:junit:4.12</last-edited>
526
+          <splitter-proportions>
527
+            <option name="proportions">
528
+              <list>
529
+                <option value="0.2" />
530
+              </list>
531
+            </option>
532
+          </splitter-proportions>
533
+        </settings>
534
+      </state>
535
+    </states>
536
+  </component>
537
+</project>

+ 32
- 0
pom.xml Parādīt failu

@@ -0,0 +1,32 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project xmlns="http://maven.apache.org/POM/4.0.0"
3
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
+    <build>
6
+        <plugins>
7
+            <plugin>
8
+                <groupId>org.apache.maven.plugins</groupId>
9
+                <artifactId>maven-compiler-plugin</artifactId>
10
+                <configuration>
11
+                    <source>1.8</source>
12
+                    <target>1.8</target>
13
+                </configuration>
14
+            </plugin>
15
+        </plugins>
16
+    </build>
17
+    <modelVersion>4.0.0</modelVersion>
18
+
19
+    <groupId>groupId</groupId>
20
+    <artifactId>ZCW-Lambdas</artifactId>
21
+    <version>1.0-SNAPSHOT</version>
22
+    <dependencies>
23
+        <dependency>
24
+            <groupId>junit</groupId>
25
+            <artifactId>junit</artifactId>
26
+            <version>4.12</version>
27
+            <scope>test</scope>
28
+        </dependency>
29
+    </dependencies>
30
+
31
+
32
+</project>

+ 5
- 0
src/main/java/CheckPerson.java Parādīt failu

@@ -0,0 +1,5 @@
1
+
2
+
3
+public interface CheckPerson {
4
+    boolean test(Person p);
5
+}

+ 30
- 0
src/main/java/MemberList.java Parādīt failu

@@ -0,0 +1,30 @@
1
+import java.util.ArrayList;
2
+import java.util.List;
3
+
4
+public class MemberList {
5
+
6
+    List<Person> memberList;
7
+
8
+    public MemberList() { memberList = new ArrayList<>();
9
+    }
10
+
11
+    public void add(Person person){
12
+        this.memberList.add(person);
13
+    }
14
+
15
+    public void remove(Person person){
16
+        this.memberList.remove(person);
17
+    }
18
+
19
+    public void printPersonsLambda (List<Person> memberList, CheckPerson tester) {
20
+
21
+        memberList.forEach(person -> {
22
+            if (tester.test(person)) {
23
+                person.printPerson();
24
+            }});
25
+    }
26
+
27
+    CheckPerson memberSexMale = p -> (p.gender.equals(Person.Sex.MALE));
28
+
29
+
30
+}

+ 68
- 0
src/main/java/Person.java Parādīt failu

@@ -0,0 +1,68 @@
1
+import java.time.LocalDate;
2
+
3
+public class Person {
4
+
5
+
6
+    public enum Sex {
7
+        MALE, FEMALE
8
+    }
9
+
10
+    String name;
11
+    LocalDate birthday = LocalDate.of(1,1,2);
12
+    Sex gender;
13
+    String emailAddress;
14
+
15
+    public Person(String name, LocalDate birthday, Sex gender, String emailAddress) {
16
+        this.name = name;
17
+        this.birthday = birthday;
18
+        this.gender = gender;
19
+        this.emailAddress = emailAddress;
20
+    }
21
+
22
+    public Person(String name){
23
+        this.name= name;
24
+    }
25
+
26
+
27
+    public String getName() {
28
+        return name;
29
+    }
30
+
31
+    public void setName(String name) {
32
+        this.name = name;
33
+    }
34
+
35
+    public LocalDate getBirthday() {
36
+        return birthday;
37
+    }
38
+
39
+    public void setBirthday(LocalDate birthday) {
40
+        this.birthday = birthday;
41
+    }
42
+
43
+    public Sex getGender() {
44
+        return gender;
45
+    }
46
+
47
+    public void setGender(Sex gender) {
48
+        this.gender = gender;
49
+    }
50
+
51
+    public String getEmailAddress() {
52
+        return emailAddress;
53
+    }
54
+
55
+    public void setEmailAddress(String emailAddress) {
56
+        this.emailAddress = emailAddress;
57
+    }
58
+
59
+    public int getAge() {
60
+        return ( LocalDate.now().getYear() - birthday.getYear());
61
+    }
62
+
63
+    public void printPerson() {
64
+        String personPrint = this.name + ": " + this.emailAddress;
65
+        System.out.println(personPrint);
66
+    }
67
+
68
+}

+ 39
- 0
src/test/java/MemberListTest.java Parādīt failu

@@ -0,0 +1,39 @@
1
+import org.junit.Test;
2
+
3
+import static org.junit.Assert.*;
4
+
5
+public class MemberListTest {
6
+
7
+    @Test
8
+    public void add() {
9
+        MemberList test = new MemberList();
10
+        Person billy = new Person("Billy");
11
+        test.add(billy);
12
+        assertTrue(test.memberList.contains(billy));
13
+    }
14
+
15
+    @Test
16
+    public void printPersonsLambdaTest() {
17
+        MemberList test = new MemberList();
18
+        Person billy = new Person("Billy");
19
+        billy.setGender(Person.Sex.MALE);
20
+        test.add(billy);
21
+
22
+
23
+        assertTrue(test.memberSexMale.test(billy));
24
+
25
+    }
26
+
27
+
28
+    @Test
29
+    public void remove() {
30
+        MemberList test = new MemberList();
31
+        Person billy = new Person("Slap Shot");
32
+        Person timmy = new Person("Bronco");
33
+        test.add(billy);
34
+        test.add(timmy);
35
+        test.remove(billy);
36
+        assertTrue(!test.memberList.contains(billy));
37
+    }
38
+
39
+}

+ 46
- 0
src/test/java/PersonTest.java Parādīt failu

@@ -0,0 +1,46 @@
1
+import org.junit.Test;
2
+
3
+import java.time.LocalDate;
4
+
5
+import static org.junit.Assert.*;
6
+
7
+public class PersonTest {
8
+
9
+    @Test
10
+    public void getSetName() {
11
+        Person test = new Person("Dave");
12
+        test.setName("Ben");
13
+        assertTrue(test.getName().equalsIgnoreCase("ben"));
14
+    }
15
+
16
+    @Test
17
+    public void getSetBirthday() {
18
+        Person test = new Person("Dave");
19
+        test.setBirthday(LocalDate.of(1985,2,8));
20
+        assertTrue(test.birthday.equals(LocalDate.of(1985,2,8)));
21
+    }
22
+
23
+    @Test
24
+    public void getSetGender() {
25
+        Person test = new Person("Dave");
26
+        test.setGender(Person.Sex.MALE);
27
+        assertTrue(test.getGender().equals(Person.Sex.MALE));
28
+    }
29
+
30
+
31
+    @Test
32
+    public void getSetEmailAddress() {
33
+        Person test = new Person("Dave");
34
+        test.setEmailAddress("totallyMeEmail@realEmail.com");
35
+        assertTrue(test.getEmailAddress().equalsIgnoreCase("totallyMeEmail@realEmail.com"));
36
+    }
37
+
38
+
39
+    @Test
40
+    public void getAge() {
41
+        Person test = new Person("Dave");
42
+        test.setBirthday(LocalDate.of(1985,2,8));
43
+        assertTrue(test.getAge() == 33);
44
+    }
45
+
46
+}

Binārs
target/classes/CheckPerson.class Parādīt failu


Binārs
target/classes/MemberList.class Parādīt failu


Binārs
target/classes/Person$Sex.class Parādīt failu


Binārs
target/classes/Person.class Parādīt failu


Binārs
target/test-classes/MemberListTest.class Parādīt failu


Binārs
target/test-classes/PersonTest.class Parādīt failu