Kr Younger 6 years ago
parent
commit
7ed0ca784e

+ 9
- 0
.idea/Checkbook-OldStyle.iml View File

1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module type="JAVA_MODULE" version="4">
3
+  <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+    <exclude-output />
5
+    <content url="file://$MODULE_DIR$" />
6
+    <orderEntry type="inheritedJdk" />
7
+    <orderEntry type="sourceFolder" forTests="false" />
8
+  </component>
9
+</module>

+ 16
- 0
.idea/compiler.xml View File

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

+ 13
- 0
.idea/libraries/Maven__junit_junit_4_0.xml View File

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

+ 10
- 0
.idea/misc.xml View File

1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="MavenProjectsManager">
4
+    <option name="originalFiles">
5
+      <list>
6
+        <option value="$PROJECT_DIR$/Checkbook/pom.xml" />
7
+      </list>
8
+    </option>
9
+  </component>
10
+</project>

+ 9
- 0
.idea/modules.xml View File

1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ProjectModuleManager">
4
+    <modules>
5
+      <module fileurl="file://$PROJECT_DIR$/Checkbook/Checkbook.iml" filepath="$PROJECT_DIR$/Checkbook/Checkbook.iml" />
6
+      <module fileurl="file://$PROJECT_DIR$/.idea/Checkbook-OldStyle.iml" filepath="$PROJECT_DIR$/.idea/Checkbook-OldStyle.iml" />
7
+    </modules>
8
+  </component>
9
+</project>

+ 6
- 0
.idea/vcs.xml View File

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>

+ 555
- 0
.idea/workspace.xml View File

1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="926ad23d-2ddc-41ae-980d-780dcc1811fa" name="Default" comment="">
5
+      <change beforePath="" afterPath="$PROJECT_DIR$/Checkbook/pom.xml" />
6
+      <change beforePath="" afterPath="$PROJECT_DIR$/Checkbook/src/main/java/Checkbook.java" />
7
+      <change beforePath="" afterPath="$PROJECT_DIR$/Checkbook/src/main/java/Payee.java" />
8
+      <change beforePath="" afterPath="$PROJECT_DIR$/Checkbook/src/main/java/Transaction.java" />
9
+      <change beforePath="" afterPath="$PROJECT_DIR$/Checkbook/src/main/java/TransactionType.java" />
10
+      <change beforePath="" afterPath="$PROJECT_DIR$/Checkbook/src/test/java/CheckbookTest.java" />
11
+      <change beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
12
+    </list>
13
+    <ignored path="$PROJECT_DIR$/Checkbook/target/" />
14
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
15
+    <option name="TRACKING_ENABLED" value="true" />
16
+    <option name="SHOW_DIALOG" value="false" />
17
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
18
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
19
+    <option name="LAST_RESOLUTION" value="IGNORE" />
20
+  </component>
21
+  <component name="FileEditorManager">
22
+    <leaf>
23
+      <file leaf-file-name="pom.xml" pinned="false" current-in-tab="false">
24
+        <entry file="file://$PROJECT_DIR$/Checkbook/pom.xml">
25
+          <provider selected="true" editor-type-id="text-editor">
26
+            <state relative-caret-position="0">
27
+              <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
28
+              <folding />
29
+            </state>
30
+          </provider>
31
+        </entry>
32
+      </file>
33
+      <file leaf-file-name="Checkbook.java" pinned="false" current-in-tab="false">
34
+        <entry file="file://$PROJECT_DIR$/Checkbook/src/main/java/Checkbook.java">
35
+          <provider selected="true" editor-type-id="text-editor">
36
+            <state relative-caret-position="0">
37
+              <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
38
+              <folding />
39
+            </state>
40
+          </provider>
41
+        </entry>
42
+      </file>
43
+      <file leaf-file-name="README.md" pinned="false" current-in-tab="true">
44
+        <entry file="file://$PROJECT_DIR$/README.md">
45
+          <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
46
+            <state split_layout="SPLIT">
47
+              <first_editor relative-caret-position="527">
48
+                <caret line="31" column="21" lean-forward="false" selection-start-line="31" selection-start-column="21" selection-end-line="31" selection-end-column="21" />
49
+                <folding />
50
+              </first_editor>
51
+              <second_editor />
52
+            </state>
53
+          </provider>
54
+        </entry>
55
+      </file>
56
+      <file leaf-file-name="Transaction.java" pinned="false" current-in-tab="false">
57
+        <entry file="file://$PROJECT_DIR$/Checkbook/src/main/java/Transaction.java">
58
+          <provider selected="true" editor-type-id="text-editor">
59
+            <state relative-caret-position="85">
60
+              <caret line="5" column="81" lean-forward="false" selection-start-line="5" selection-start-column="72" selection-end-line="5" selection-end-column="81" />
61
+              <folding>
62
+                <element signature="imports" expanded="true" />
63
+                <element signature="e#175#184#0" expanded="true" />
64
+                <element signature="e#661#662#0" expanded="true" />
65
+                <element signature="e#692#693#0" expanded="true" />
66
+                <element signature="e#726#727#0" expanded="true" />
67
+                <element signature="e#759#760#0" expanded="true" />
68
+                <element signature="e#790#791#0" expanded="true" />
69
+                <element signature="e#817#818#0" expanded="true" />
70
+                <element signature="e#857#858#0" expanded="true" />
71
+                <element signature="e#889#890#0" expanded="true" />
72
+                <element signature="e#920#921#0" expanded="true" />
73
+                <element signature="e#948#949#0" expanded="true" />
74
+                <element signature="e#989#990#0" expanded="true" />
75
+                <element signature="e#1023#1024#0" expanded="true" />
76
+              </folding>
77
+            </state>
78
+          </provider>
79
+        </entry>
80
+      </file>
81
+      <file leaf-file-name="TransactionType.java" pinned="false" current-in-tab="false">
82
+        <entry file="file://$PROJECT_DIR$/Checkbook/src/main/java/TransactionType.java">
83
+          <provider selected="true" editor-type-id="text-editor">
84
+            <state relative-caret-position="0">
85
+              <caret line="0" column="27" lean-forward="false" selection-start-line="0" selection-start-column="12" selection-end-line="0" selection-end-column="27" />
86
+              <folding />
87
+            </state>
88
+          </provider>
89
+        </entry>
90
+      </file>
91
+    </leaf>
92
+  </component>
93
+  <component name="FileTemplateManagerImpl">
94
+    <option name="RECENT_TEMPLATES">
95
+      <list>
96
+        <option value="JUnit4 Test Class" />
97
+        <option value="Class" />
98
+      </list>
99
+    </option>
100
+  </component>
101
+  <component name="Git.Settings">
102
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
103
+  </component>
104
+  <component name="GradleLocalSettings">
105
+    <option name="externalProjectsViewState">
106
+      <projects_view />
107
+    </option>
108
+    <option name="projectSyncType">
109
+      <map>
110
+        <entry key="$USER_HOME$/GitHub/gs-gradle/initial" value="PREVIEW" />
111
+      </map>
112
+    </option>
113
+  </component>
114
+  <component name="IdeDocumentHistory">
115
+    <option name="CHANGED_PATHS">
116
+      <list>
117
+        <option value="$PROJECT_DIR$/Checkbook/src/test/java/CheckbookTest.java" />
118
+        <option value="$PROJECT_DIR$/Checkbook/src/main/java/Payee.java" />
119
+        <option value="$PROJECT_DIR$/Checkbook/src/main/java/TransactionType.java" />
120
+        <option value="$PROJECT_DIR$/Checkbook/src/main/java/Transaction.java" />
121
+        <option value="$PROJECT_DIR$/README.md" />
122
+      </list>
123
+    </option>
124
+  </component>
125
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
126
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
127
+  <component name="JsGulpfileManager">
128
+    <detection-done>true</detection-done>
129
+    <sorting>DEFINITION_ORDER</sorting>
130
+  </component>
131
+  <component name="ProjectFrameBounds">
132
+    <option name="x" value="91" />
133
+    <option name="y" value="61" />
134
+    <option name="width" value="1538" />
135
+    <option name="height" value="962" />
136
+  </component>
137
+  <component name="ProjectView">
138
+    <navigator currentView="ProjectPane" proportions="" version="1">
139
+      <flattenPackages />
140
+      <showMembers />
141
+      <showModules />
142
+      <showLibraryContents />
143
+      <hideEmptyPackages />
144
+      <abbreviatePackageNames />
145
+      <autoscrollToSource />
146
+      <autoscrollFromSource />
147
+      <sortByType />
148
+      <manualOrder />
149
+      <foldersAlwaysOnTop value="true" />
150
+    </navigator>
151
+    <panes>
152
+      <pane id="Scope" />
153
+      <pane id="Scratches" />
154
+      <pane id="AndroidView" />
155
+      <pane id="PackagesPane" />
156
+      <pane id="ProjectPane">
157
+        <subPane>
158
+          <expand>
159
+            <path>
160
+              <item name="Checkbook-OldStyle" type="b2602c69:ProjectViewProjectNode" />
161
+              <item name="Checkbook-OldStyle" type="462c0819:PsiDirectoryNode" />
162
+            </path>
163
+            <path>
164
+              <item name="Checkbook-OldStyle" type="b2602c69:ProjectViewProjectNode" />
165
+              <item name="Checkbook-OldStyle" type="462c0819:PsiDirectoryNode" />
166
+              <item name="Checkbook" type="462c0819:PsiDirectoryNode" />
167
+            </path>
168
+            <path>
169
+              <item name="Checkbook-OldStyle" type="b2602c69:ProjectViewProjectNode" />
170
+              <item name="Checkbook-OldStyle" type="462c0819:PsiDirectoryNode" />
171
+              <item name="Checkbook" type="462c0819:PsiDirectoryNode" />
172
+              <item name="src" type="462c0819:PsiDirectoryNode" />
173
+            </path>
174
+            <path>
175
+              <item name="Checkbook-OldStyle" type="b2602c69:ProjectViewProjectNode" />
176
+              <item name="Checkbook-OldStyle" type="462c0819:PsiDirectoryNode" />
177
+              <item name="Checkbook" type="462c0819:PsiDirectoryNode" />
178
+              <item name="src" type="462c0819:PsiDirectoryNode" />
179
+              <item name="main" type="462c0819:PsiDirectoryNode" />
180
+            </path>
181
+            <path>
182
+              <item name="Checkbook-OldStyle" type="b2602c69:ProjectViewProjectNode" />
183
+              <item name="Checkbook-OldStyle" type="462c0819:PsiDirectoryNode" />
184
+              <item name="Checkbook" type="462c0819:PsiDirectoryNode" />
185
+              <item name="src" type="462c0819:PsiDirectoryNode" />
186
+              <item name="main" type="462c0819:PsiDirectoryNode" />
187
+              <item name="java" type="462c0819:PsiDirectoryNode" />
188
+            </path>
189
+          </expand>
190
+          <select />
191
+        </subPane>
192
+      </pane>
193
+    </panes>
194
+  </component>
195
+  <component name="PropertiesComponent">
196
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
197
+    <property name="settings.editor.selected.configurable" value="configurable.group.appearance" />
198
+    <property name="WebServerToolWindowFactoryState" value="false" />
199
+    <property name="aspect.path.notification.shown" value="true" />
200
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
201
+    <property name="jdk.selected.JAVA_MODULE" value="1.8" />
202
+    <property name="project.structure.last.edited" value="Modules" />
203
+    <property name="project.structure.proportion" value="0.0" />
204
+    <property name="project.structure.side.proportion" value="0.0" />
205
+    <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
206
+  </component>
207
+  <component name="RecentsManager">
208
+    <key name="CreateTestDialog.RecentsKey">
209
+      <recent name="" />
210
+    </key>
211
+    <key name="CreateTestDialog.Recents.Supers">
212
+      <recent name="" />
213
+    </key>
214
+  </component>
215
+  <component name="RunDashboard">
216
+    <option name="ruleStates">
217
+      <list>
218
+        <RuleState>
219
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
220
+        </RuleState>
221
+        <RuleState>
222
+          <option name="name" value="StatusDashboardGroupingRule" />
223
+        </RuleState>
224
+      </list>
225
+    </option>
226
+  </component>
227
+  <component name="RunManager">
228
+    <configuration default="true" type="Applet" factoryName="Applet">
229
+      <option name="WIDTH" value="400" />
230
+      <option name="HEIGHT" value="300" />
231
+      <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
232
+      <module />
233
+    </configuration>
234
+    <configuration default="true" type="Application" factoryName="Application">
235
+      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
236
+      <option name="MAIN_CLASS_NAME" />
237
+      <option name="VM_PARAMETERS" />
238
+      <option name="PROGRAM_PARAMETERS" />
239
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
240
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
241
+      <option name="ALTERNATIVE_JRE_PATH" />
242
+      <option name="ENABLE_SWING_INSPECTOR" value="false" />
243
+      <option name="ENV_VARIABLES" />
244
+      <option name="PASS_PARENT_ENVS" value="true" />
245
+      <module name="" />
246
+      <envs />
247
+    </configuration>
248
+    <configuration default="true" type="JUnit" factoryName="JUnit">
249
+      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
250
+      <module name="" />
251
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
252
+      <option name="ALTERNATIVE_JRE_PATH" />
253
+      <option name="PACKAGE_NAME" />
254
+      <option name="MAIN_CLASS_NAME" />
255
+      <option name="METHOD_NAME" />
256
+      <option name="TEST_OBJECT" value="class" />
257
+      <option name="VM_PARAMETERS" value="-ea" />
258
+      <option name="PARAMETERS" />
259
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
260
+      <option name="ENV_VARIABLES" />
261
+      <option name="PASS_PARENT_ENVS" value="true" />
262
+      <option name="TEST_SEARCH_SCOPE">
263
+        <value defaultName="singleModule" />
264
+      </option>
265
+      <envs />
266
+      <patterns />
267
+    </configuration>
268
+    <configuration default="true" type="Remote" factoryName="Remote">
269
+      <option name="USE_SOCKET_TRANSPORT" value="true" />
270
+      <option name="SERVER_MODE" value="false" />
271
+      <option name="SHMEM_ADDRESS" value="javadebug" />
272
+      <option name="HOST" value="localhost" />
273
+      <option name="PORT" value="5005" />
274
+    </configuration>
275
+    <configuration default="true" type="TestNG" factoryName="TestNG">
276
+      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
277
+      <module name="" />
278
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
279
+      <option name="ALTERNATIVE_JRE_PATH" />
280
+      <option name="SUITE_NAME" />
281
+      <option name="PACKAGE_NAME" />
282
+      <option name="MAIN_CLASS_NAME" />
283
+      <option name="METHOD_NAME" />
284
+      <option name="GROUP_NAME" />
285
+      <option name="TEST_OBJECT" value="CLASS" />
286
+      <option name="VM_PARAMETERS" value="-ea" />
287
+      <option name="PARAMETERS" />
288
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
289
+      <option name="OUTPUT_DIRECTORY" />
290
+      <option name="ANNOTATION_TYPE" />
291
+      <option name="ENV_VARIABLES" />
292
+      <option name="PASS_PARENT_ENVS" value="true" />
293
+      <option name="TEST_SEARCH_SCOPE">
294
+        <value defaultName="singleModule" />
295
+      </option>
296
+      <option name="USE_DEFAULT_REPORTERS" value="false" />
297
+      <option name="PROPERTIES_FILE" />
298
+      <envs />
299
+      <properties />
300
+      <listeners />
301
+    </configuration>
302
+    <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
303
+      <module name="" />
304
+      <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
305
+      <option name="PROGRAM_PARAMETERS" />
306
+      <predefined_log_file id="idea.log" enabled="true" />
307
+    </configuration>
308
+  </component>
309
+  <component name="ShelveChangesManager" show_recycled="false">
310
+    <option name="remove_strategy" value="false" />
311
+  </component>
312
+  <component name="SvnConfiguration">
313
+    <configuration />
314
+  </component>
315
+  <component name="TaskManager">
316
+    <task active="true" id="Default" summary="Default task">
317
+      <changelist id="926ad23d-2ddc-41ae-980d-780dcc1811fa" name="Default" comment="" />
318
+      <created>1543958631974</created>
319
+      <option name="number" value="Default" />
320
+      <option name="presentableId" value="Default" />
321
+      <updated>1543958631974</updated>
322
+      <workItem from="1543958633447" duration="2457000" />
323
+    </task>
324
+    <servers />
325
+  </component>
326
+  <component name="TimeTrackingManager">
327
+    <option name="totallyTimeSpent" value="2457000" />
328
+  </component>
329
+  <component name="ToolWindowManager">
330
+    <frame x="91" y="61" width="1538" height="962" extended-state="0" />
331
+    <editor active="true" />
332
+    <layout>
333
+      <window_info id="Palette" 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="-1" side_tool="false" content_ui="tabs" />
334
+      <window_info id="TODO" 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="6" side_tool="false" content_ui="tabs" />
335
+      <window_info id="Palette&#9;" 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="-1" side_tool="false" content_ui="tabs" />
336
+      <window_info id="Image Layers" 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="-1" side_tool="false" content_ui="tabs" />
337
+      <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="-1" side_tool="false" content_ui="tabs" />
338
+      <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="-1" side_tool="true" content_ui="tabs" />
339
+      <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="-1" side_tool="false" content_ui="tabs" />
340
+      <window_info id="Run" 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="2" side_tool="false" content_ui="tabs" />
341
+      <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="-1" side_tool="false" content_ui="tabs" />
342
+      <window_info id="Terminal" 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="-1" side_tool="false" content_ui="tabs" />
343
+      <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="-1" side_tool="false" content_ui="tabs" />
344
+      <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="-1" side_tool="false" content_ui="tabs" />
345
+      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24966353" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
346
+      <window_info id="Database" 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="-1" side_tool="false" content_ui="tabs" />
347
+      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
348
+      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
349
+      <window_info id="UI 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="-1" side_tool="false" content_ui="tabs" />
350
+      <window_info id="Theme Preview" 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="-1" side_tool="false" content_ui="tabs" />
351
+      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
352
+      <window_info id="Favorites" 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="-1" side_tool="true" content_ui="tabs" />
353
+      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
354
+      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
355
+      <window_info id="Message" 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="0" side_tool="false" content_ui="tabs" />
356
+      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
357
+      <window_info id="Find" 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="1" side_tool="false" content_ui="tabs" />
358
+      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
359
+    </layout>
360
+  </component>
361
+  <component name="TypeScriptGeneratedFilesManager">
362
+    <option name="version" value="1" />
363
+  </component>
364
+  <component name="VcsContentAnnotationSettings">
365
+    <option name="myLimit" value="2678400000" />
366
+  </component>
367
+  <component name="XDebuggerManager">
368
+    <breakpoint-manager />
369
+    <watches-manager />
370
+  </component>
371
+  <component name="editorHistoryManager">
372
+    <entry file="file://$PROJECT_DIR$/Checkbook/src/test/java/CheckbookTest.java">
373
+      <provider selected="true" editor-type-id="text-editor">
374
+        <state relative-caret-position="170">
375
+          <caret line="10" column="5" lean-forward="false" selection-start-line="10" selection-start-column="5" selection-end-line="10" selection-end-column="5" />
376
+          <folding />
377
+        </state>
378
+      </provider>
379
+    </entry>
380
+    <entry file="file://$PROJECT_DIR$/Checkbook/src/main/java/Payee.java">
381
+      <provider selected="true" editor-type-id="text-editor">
382
+        <state relative-caret-position="357">
383
+          <caret line="21" column="0" lean-forward="false" selection-start-line="21" selection-start-column="0" selection-end-line="21" selection-end-column="0" />
384
+          <folding>
385
+            <element signature="e#151#152#0" expanded="true" />
386
+            <element signature="e#184#185#0" expanded="true" />
387
+            <element signature="e#236#237#0" expanded="true" />
388
+            <element signature="e#280#281#0" expanded="true" />
389
+            <element signature="e#316#317#0" expanded="true" />
390
+            <element signature="e#348#349#0" expanded="true" />
391
+            <element signature="e#398#399#0" expanded="true" />
392
+            <element signature="e#440#441#0" expanded="true" />
393
+            <element signature="e#479#480#0" expanded="true" />
394
+            <element signature="e#514#515#0" expanded="true" />
395
+            <element signature="e#570#571#0" expanded="true" />
396
+            <element signature="e#618#619#0" expanded="true" />
397
+          </folding>
398
+        </state>
399
+      </provider>
400
+    </entry>
401
+    <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/src.zip!/java/util/concurrent/atomic/AtomicReference.java">
402
+      <provider selected="true" editor-type-id="text-editor">
403
+        <state relative-caret-position="134">
404
+          <caret line="47" column="3" lean-forward="true" selection-start-line="47" selection-start-column="3" selection-end-line="47" selection-end-column="3" />
405
+          <folding />
406
+        </state>
407
+      </provider>
408
+    </entry>
409
+    <entry file="file://$PROJECT_DIR$/Checkbook/pom.xml">
410
+      <provider selected="true" editor-type-id="text-editor">
411
+        <state relative-caret-position="0">
412
+          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
413
+          <folding />
414
+        </state>
415
+      </provider>
416
+    </entry>
417
+    <entry file="file://$PROJECT_DIR$/Checkbook/src/main/java/TransactionType.java">
418
+      <provider selected="true" editor-type-id="text-editor">
419
+        <state relative-caret-position="0">
420
+          <caret line="0" column="27" lean-forward="false" selection-start-line="0" selection-start-column="12" selection-end-line="0" selection-end-column="27" />
421
+          <folding />
422
+        </state>
423
+      </provider>
424
+    </entry>
425
+    <entry file="file://$PROJECT_DIR$/Checkbook/src/main/java/Transaction.java">
426
+      <provider selected="true" editor-type-id="text-editor">
427
+        <state relative-caret-position="85">
428
+          <caret line="5" column="81" lean-forward="false" selection-start-line="5" selection-start-column="72" selection-end-line="5" selection-end-column="81" />
429
+          <folding>
430
+            <element signature="imports" expanded="true" />
431
+            <element signature="e#175#184#0" expanded="true" />
432
+            <element signature="e#661#662#0" expanded="true" />
433
+            <element signature="e#692#693#0" expanded="true" />
434
+            <element signature="e#726#727#0" expanded="true" />
435
+            <element signature="e#759#760#0" expanded="true" />
436
+            <element signature="e#790#791#0" expanded="true" />
437
+            <element signature="e#817#818#0" expanded="true" />
438
+            <element signature="e#857#858#0" expanded="true" />
439
+            <element signature="e#889#890#0" expanded="true" />
440
+            <element signature="e#920#921#0" expanded="true" />
441
+            <element signature="e#948#949#0" expanded="true" />
442
+            <element signature="e#989#990#0" expanded="true" />
443
+            <element signature="e#1023#1024#0" expanded="true" />
444
+          </folding>
445
+        </state>
446
+      </provider>
447
+    </entry>
448
+    <entry file="file://$PROJECT_DIR$/Checkbook/src/main/java/Checkbook.java">
449
+      <provider selected="true" editor-type-id="text-editor">
450
+        <state relative-caret-position="0">
451
+          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
452
+          <folding />
453
+        </state>
454
+      </provider>
455
+    </entry>
456
+    <entry file="file://$PROJECT_DIR$/README.md">
457
+      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
458
+        <state split_layout="SPLIT">
459
+          <first_editor relative-caret-position="527">
460
+            <caret line="31" column="21" lean-forward="false" selection-start-line="31" selection-start-column="21" selection-end-line="31" selection-end-column="21" />
461
+            <folding />
462
+          </first_editor>
463
+          <second_editor />
464
+        </state>
465
+      </provider>
466
+    </entry>
467
+  </component>
468
+  <component name="masterDetails">
469
+    <states>
470
+      <state key="ArtifactsStructureConfigurable.UI">
471
+        <settings>
472
+          <artifact-editor />
473
+          <splitter-proportions>
474
+            <option name="proportions">
475
+              <list>
476
+                <option value="0.2" />
477
+              </list>
478
+            </option>
479
+          </splitter-proportions>
480
+        </settings>
481
+      </state>
482
+      <state key="FacetStructureConfigurable.UI">
483
+        <settings>
484
+          <last-edited>No facets are configured</last-edited>
485
+          <splitter-proportions>
486
+            <option name="proportions">
487
+              <list>
488
+                <option value="0.2" />
489
+              </list>
490
+            </option>
491
+          </splitter-proportions>
492
+        </settings>
493
+      </state>
494
+      <state key="GlobalLibrariesConfigurable.UI">
495
+        <settings>
496
+          <splitter-proportions>
497
+            <option name="proportions">
498
+              <list>
499
+                <option value="0.2" />
500
+              </list>
501
+            </option>
502
+          </splitter-proportions>
503
+        </settings>
504
+      </state>
505
+      <state key="JdkListConfigurable.UI">
506
+        <settings>
507
+          <last-edited>1.8</last-edited>
508
+          <splitter-proportions>
509
+            <option name="proportions">
510
+              <list>
511
+                <option value="0.2" />
512
+              </list>
513
+            </option>
514
+          </splitter-proportions>
515
+        </settings>
516
+      </state>
517
+      <state key="ModuleStructureConfigurable.UI">
518
+        <settings>
519
+          <last-edited>Checkbook</last-edited>
520
+          <splitter-proportions>
521
+            <option name="proportions">
522
+              <list>
523
+                <option value="0.2" />
524
+                <option value="0.6" />
525
+              </list>
526
+            </option>
527
+          </splitter-proportions>
528
+        </settings>
529
+      </state>
530
+      <state key="ProjectJDKs.UI">
531
+        <settings>
532
+          <last-edited>1.8</last-edited>
533
+          <splitter-proportions>
534
+            <option name="proportions">
535
+              <list>
536
+                <option value="0.2" />
537
+              </list>
538
+            </option>
539
+          </splitter-proportions>
540
+        </settings>
541
+      </state>
542
+      <state key="ProjectLibrariesConfigurable.UI">
543
+        <settings>
544
+          <splitter-proportions>
545
+            <option name="proportions">
546
+              <list>
547
+                <option value="0.2" />
548
+              </list>
549
+            </option>
550
+          </splitter-proportions>
551
+        </settings>
552
+      </state>
553
+    </states>
554
+  </component>
555
+</project>

+ 16
- 0
Checkbook/Checkbook.iml View File

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="jdk" jdkName="1.8" jdkType="JavaSDK" />
13
+    <orderEntry type="sourceFolder" forTests="false" />
14
+    <orderEntry type="library" name="Maven: junit:junit:4.0" level="project" />
15
+  </component>
16
+</module>

+ 31
- 0
Checkbook/pom.xml View File

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
+    <modelVersion>4.0.0</modelVersion>
6
+
7
+    <groupId>rocks.zipcode.oldstyle</groupId>
8
+    <artifactId>Checkbook</artifactId>
9
+    <version>1.0-SNAPSHOT</version>
10
+    <build>
11
+        <plugins>
12
+            <plugin>
13
+                <groupId>org.apache.maven.plugins</groupId>
14
+                <artifactId>maven-compiler-plugin</artifactId>
15
+                <configuration>
16
+                    <source>1.8</source>
17
+                    <target>1.8</target>
18
+                </configuration>
19
+            </plugin>
20
+        </plugins>
21
+    </build>
22
+    <dependencies>
23
+        <dependency>
24
+            <groupId>junit</groupId>
25
+            <artifactId>junit</artifactId>
26
+            <version>4.0</version>
27
+        </dependency>
28
+    </dependencies>
29
+
30
+
31
+</project>

+ 2
- 0
Checkbook/src/main/java/Checkbook.java View File

1
+public class Checkbook {
2
+}

+ 33
- 0
Checkbook/src/main/java/Payee.java View File

1
+public class Payee {
2
+
3
+    private String familyName;
4
+    private String givenName;
5
+    private String emailAddress;
6
+
7
+    public String getFamilyName() {
8
+        return familyName;
9
+    }
10
+
11
+    public void setFamilyName(String familyName) {
12
+        this.familyName = familyName;
13
+    }
14
+
15
+    public String getGivenName() {
16
+        return givenName;
17
+    }
18
+
19
+    public void setGivenName(String givenName) {
20
+        this.givenName = givenName;
21
+    }
22
+
23
+    public String getEmailAddress() {
24
+        return emailAddress;
25
+    }
26
+
27
+    public void setEmailAddress(String emailAddress) {
28
+        this.emailAddress = emailAddress;
29
+    }
30
+    // ... and a bunch more hidden stuff: for testing purposes only
31
+
32
+
33
+}

+ 48
- 0
Checkbook/src/main/java/Transaction.java View File

1
+import java.time.LocalDate;
2
+import java.util.concurrent.atomic.AtomicReference;
3
+
4
+public class Transaction {
5
+    private final AtomicReference<Integer> id = new AtomicReference<Integer>();
6
+    private final AtomicReference<LocalDate> date = new AtomicReference<LocalDate>();
7
+    private String memo;
8
+    private Payee payee;
9
+    private TransactionType typee; // Credit (reduces the checkbook), Debit (increases the checkbook)
10
+    private Double amount;
11
+
12
+    public Transaction(String memo, Payee payee, TransactionType typee, Double amount) {
13
+        this.memo = memo;
14
+        this.payee = payee;
15
+        this.amount = amount;
16
+    }
17
+
18
+    public Integer getId() {
19
+        return id.get();
20
+    }
21
+
22
+    public LocalDate getDate() {
23
+        return date.get();
24
+    }
25
+
26
+    public String getMemo() {
27
+        return memo;
28
+    }
29
+
30
+    public void setMemo(String memo) {
31
+        this.memo = memo;
32
+    }
33
+
34
+    public Payee getPayee() {
35
+        return payee;
36
+    }
37
+
38
+    public void setPayee(Payee payee) {
39
+        this.payee = payee;
40
+    }
41
+
42
+    public Double getAmount() {
43
+        if (this.typee == TransactionType.DEBIT) {
44
+            return amount;
45
+        }
46
+        return (-1.0 * amount);
47
+    }
48
+}

+ 4
- 0
Checkbook/src/main/java/TransactionType.java View File

1
+public enum TransactionType {
2
+    DEBIT,
3
+    CREDIT;
4
+}

+ 12
- 0
Checkbook/src/test/java/CheckbookTest.java View File

1
+import static org.junit.Assert.*;
2
+
3
+public class CheckbookTest {
4
+
5
+    @org.junit.Before
6
+    public void setUp() throws Exception {
7
+    }
8
+
9
+    @org.junit.After
10
+    public void tearDown() throws Exception {
11
+    }
12
+}

+ 40
- 1
README.md View File

1
 # Checkbook-OldStyle
1
 # Checkbook-OldStyle
2
 
2
 
3
-create a simple checkbook class that adheres to java Collections interface.
3
+Create a simple Checkbook class that adheres to java Collections interface.
4
+
5
+A new company, ZipMintyFreshness, needs a checkbook account object inside their new mobile offering.
6
+
7
+You need to create a class, and 3 tests for every method.
8
+
9
+Maybe you'll get paid.
10
+
11
+
12
+Checkbook
13
+ needs to organize and track a series of Transaction objects. See the Transaction class file.
14
+ Transaction needs to use a few Payee objects for your tests.
15
+ 
16
+ * int size()
17
+ * boolean isEmpty()
18
+ * boolean contains(Transaction element)
19
+ * boolean add(Transaction element)
20
+ * boolean remove(Transaction element)
21
+ * Iterator<Transaction> iterator()
22
+ 
23
+ AND
24
+ 
25
+ * Transaction[] toArray()
26
+ * <Transaction> Transaction[] toArray(Transaction[] a)
27
+ 
28
+ * double checkbookValue() // sum of all Transactions (both Debits and Credits)
29
+ * Transaction getTransactionsForDate(LocalDate aDate)
30
+ * Transaction[] getAllTransactionsForPayee(Payee payee)
31
+ 
32
+ Special Constructors:
33
+ * Checkbook(double cashAmount)
34
+ * Checkbook(Payee owner, double cashAmount)
35
+ 
36
+ 
37
+ PLUS (For Extra Points, 10 million extra, to be precise)
38
+ 
39
+ * containsAll(Collection<Transaction> c) 
40
+ * boolean addAll(Collection<Transaction> c)
41
+ * boolean removeAll(Collection<Transaction> c)
42
+ * void clear()