forked from nus-cs2103-AY1819S1/addressbook-level4
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor address book to loan book (#115)
* Update README, including changing the app's name and its introduction * Add LoanRate class * Correct the checkstyle error * Correct checkstyle errors in LoanRateTest * Add a new line in LoanRateTest * Add a new line in LoanRate class * Update LoanRate class * Change the regex of rate and add some test cases * Change the type of rate from String to double * Correct checkstyle errors * Update LoanRate class * Correct checkstyle error * Correct checkstyle errors * Add config.json * . (#2) * Refactor LoanTime to extend DataField class (#73) * Add Irham's picture * Change title to Loanbook App * Refactor LoanTime to extend DataField class * Edit documentation of LoanTime methods * Remove unnecessary import statement from LoanTimeTest * Fix style check violations in LoanTime and LoanTimeTest * Fix test in LoanTimeTest * Modify loanTimeDifferenceMinutes method in LoanTime to use static method * Add LoanRate class (#29) * Update README, including changing the app's name and its introduction * Add LoanRate class * Correct the checkstyle error * Correct checkstyle errors in LoanRateTest * Add a new line in LoanRateTest * Add a new line in LoanRate class * Update LoanRate class * Change the regex of rate and add some test cases * Change the type of rate from String to double * Correct checkstyle errors * Update LoanRate class * Correct checkstyle error * Correct checkstyle errors * Add a new line at EOF * Replace "address" by "loan" that won't affect other parts of the project in logic * Replace "address" by "loan" that won't affect other parts of the project in common * Replace "address" by "loan" that won't affect other parts of the project in model * Replace "address" by "loan" that won't affect other parts of the project in storage * Replace "address" by "loan" that won't affect other parts of the project in MainApp * Refactor AddressBook class to LoanBook * Refactor VersionedAddressBook class to VersionedLoanBook * Refactor ReadOnlyAddressBook class to ReadOnlyLoanBook * Refactor "address" to "loan" in model folder and model test * Replace all "address" to "loan" in logic folder and logic tests * Replace "address" by "loan" in common and ui, but some parts involving storage are left * Refactor all the files and tests about Storage * Refactor "address" to "loan" * Fix CheckStyle Errors * Fix CheckStyle Error * Fix a missing change
- Loading branch information
Showing
91 changed files
with
1,234 additions
and
1,233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
src/main/java/seedu/address/commons/events/model/AddressBookChangedEvent.java
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
src/main/java/seedu/address/commons/events/model/LoanBookChangedEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package seedu.address.commons.events.model; | ||
|
||
import seedu.address.commons.events.BaseEvent; | ||
import seedu.address.model.ReadOnlyLoanBook; | ||
|
||
/** Indicates the LoanBook in the model has changed*/ | ||
public class LoanBookChangedEvent extends BaseEvent { | ||
|
||
public final ReadOnlyLoanBook data; | ||
|
||
public LoanBookChangedEvent(ReadOnlyLoanBook data) { | ||
this.data = data; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "number of loans " + data.getLoanList().size(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.