Kr Younger 6 years ago
parent
commit
1fa5731a72
2 changed files with 30 additions and 35 deletions
  1. 9
    15
      .idea/workspace.xml
  2. 21
    20
      README.md

+ 9
- 15
.idea/workspace.xml View File

2
 <project version="4">
2
 <project version="4">
3
   <component name="ChangeListManager">
3
   <component name="ChangeListManager">
4
     <list default="true" id="926ad23d-2ddc-41ae-980d-780dcc1811fa" name="Default" comment="">
4
     <list default="true" id="926ad23d-2ddc-41ae-980d-780dcc1811fa" name="Default" comment="">
5
-      <change beforePath="" afterPath="$PROJECT_DIR$/Checkbook/src/main/java/AccountBook.java" />
6
-      <change beforePath="" afterPath="$PROJECT_DIR$/Checkbook/src/main/java/GenericAccount.java" />
7
-      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
8
-      <change beforePath="$PROJECT_DIR$/Checkbook/src/main/java/Checkbook.java" afterPath="$PROJECT_DIR$/Checkbook/src/main/java/Checkbook.java" />
9
-      <change beforePath="$PROJECT_DIR$/Checkbook/src/main/java/Transaction.java" afterPath="$PROJECT_DIR$/Checkbook/src/main/java/Transaction.java" />
10
-      <change beforePath="$PROJECT_DIR$/Checkbook/src/main/java/TransactionType.java" afterPath="$PROJECT_DIR$/Checkbook/src/main/java/TransactionType.java" />
11
       <change beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
5
       <change beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
12
     </list>
6
     </list>
13
     <ignored path="$PROJECT_DIR$/Checkbook/target/" />
7
     <ignored path="$PROJECT_DIR$/Checkbook/target/" />
24
         <entry file="file://$PROJECT_DIR$/README.md">
18
         <entry file="file://$PROJECT_DIR$/README.md">
25
           <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
19
           <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
26
             <state split_layout="SPLIT">
20
             <state split_layout="SPLIT">
27
-              <first_editor relative-caret-position="443">
28
-                <caret line="31" column="29" lean-forward="false" selection-start-line="31" selection-start-column="29" selection-end-line="31" selection-end-column="29" />
21
+              <first_editor relative-caret-position="171">
22
+                <caret line="15" column="0" lean-forward="false" selection-start-line="15" selection-start-column="0" selection-end-line="15" selection-end-column="0" />
29
                 <folding />
23
                 <folding />
30
               </first_editor>
24
               </first_editor>
31
               <second_editor />
25
               <second_editor />
78
     <sorting>DEFINITION_ORDER</sorting>
72
     <sorting>DEFINITION_ORDER</sorting>
79
   </component>
73
   </component>
80
   <component name="ProjectFrameBounds">
74
   <component name="ProjectFrameBounds">
81
-    <option name="x" value="91" />
82
-    <option name="y" value="61" />
75
+    <option name="x" value="115" />
76
+    <option name="y" value="45" />
83
     <option name="width" value="1538" />
77
     <option name="width" value="1538" />
84
     <option name="height" value="962" />
78
     <option name="height" value="962" />
85
   </component>
79
   </component>
268
       <option name="number" value="Default" />
262
       <option name="number" value="Default" />
269
       <option name="presentableId" value="Default" />
263
       <option name="presentableId" value="Default" />
270
       <updated>1543958631974</updated>
264
       <updated>1543958631974</updated>
271
-      <workItem from="1543958633447" duration="2990000" />
265
+      <workItem from="1543958633447" duration="3202000" />
272
     </task>
266
     </task>
273
     <servers />
267
     <servers />
274
   </component>
268
   </component>
275
   <component name="TimeTrackingManager">
269
   <component name="TimeTrackingManager">
276
-    <option name="totallyTimeSpent" value="2990000" />
270
+    <option name="totallyTimeSpent" value="3202000" />
277
   </component>
271
   </component>
278
   <component name="ToolWindowManager">
272
   <component name="ToolWindowManager">
279
-    <frame x="91" y="61" width="1538" height="962" extended-state="0" />
273
+    <frame x="115" y="45" width="1538" height="962" extended-state="0" />
280
     <editor active="true" />
274
     <editor active="true" />
281
     <layout>
275
     <layout>
282
       <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" />
276
       <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" />
424
     <entry file="file://$PROJECT_DIR$/README.md">
418
     <entry file="file://$PROJECT_DIR$/README.md">
425
       <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
419
       <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
426
         <state split_layout="SPLIT">
420
         <state split_layout="SPLIT">
427
-          <first_editor relative-caret-position="443">
428
-            <caret line="31" column="29" lean-forward="false" selection-start-line="31" selection-start-column="29" selection-end-line="31" selection-end-column="29" />
421
+          <first_editor relative-caret-position="171">
422
+            <caret line="15" column="0" lean-forward="false" selection-start-line="15" selection-start-column="0" selection-end-line="15" selection-end-column="0" />
429
             <folding />
423
             <folding />
430
           </first_editor>
424
           </first_editor>
431
           <second_editor />
425
           <second_editor />

+ 21
- 20
README.md View File

13
  needs to organize and track a series of Transaction objects. See the Transaction class file.
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.
14
  Transaction needs to use a few Payee objects for your tests.
15
  
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()
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
  
22
  
23
  AND
23
  AND
24
  
24
  
25
- * Transaction[] toArray()
26
- * <Transaction> Transaction[] toArray(Transaction[] a)
25
+* Transaction[] toArray()
26
+* <Transaction> Transaction[] toArray(Transaction[] a)
27
  
27
  
28
- * double checkbookValue() // sum of all Transactions (both Debits and Credits)
29
- * Transaction getTransactionsForDate(LocalDate aDate)
30
- * Transaction[] getAllTransactionsForPayee(Payee payee)
31
- * Transaction[] getAllDebitTransactions()
32
- * Transaction[] getAllCreditTransactions()
28
+* double checkbookValue() // sum of all Transactions (both Debits and Credits)
29
+* Transaction getTransactionsForDate(LocalDate aDate)
30
+* Transaction[] getAllTransactionsForPayee(Payee payee)
31
+* Transaction[] getAllDebitTransactions()
32
+* Transaction[] getAllCreditTransactions()
33
  
33
  
34
  Special Constructors:
34
  Special Constructors:
35
- * Checkbook(double cashAmount)
36
- * Checkbook(Payee owner, double cashAmount)
35
+
36
+* Checkbook(double cashAmount)
37
+* Checkbook(Payee owner, double cashAmount)
37
  
38
  
38
  
39
  
39
- PLUS (For Extra Points, 10 million extra, to be precise)
40
+PLUS (For Extra Points, 10 million extra, to be precise)
40
  
41
  
41
- * containsAll(Collection<Transaction> c) 
42
- * boolean addAll(Collection<Transaction> c)
43
- * boolean removeAll(Collection<Transaction> c)
44
- * void clear()
42
+* containsAll(Collection<Transaction> c) 
43
+* boolean addAll(Collection<Transaction> c)
44
+* boolean removeAll(Collection<Transaction> c)
45
+* void clear()
45
 
46
 
46
 finally, make a generic account class, that takes any class which implements the AccountBook interface.
47
 finally, make a generic account class, that takes any class which implements the AccountBook interface.