-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Checkstyle to TransactionFactory
- Loading branch information
Showing
1 changed file
with
13 additions
and
13 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,22 @@ | ||
| package Model; | ||
|
|
||
| /** | ||
| * Factory for creating transaction objects | ||
| * Factory for creating transaction objects. | ||
| */ | ||
| public class TransactionFactory { | ||
|
|
||
| /** | ||
| * Create purchase transaction | ||
| */ | ||
| public static Transaction createPurchase(Share share, int week) { | ||
| return new Purchase(share, week); | ||
| } | ||
| /** | ||
| * Create purchase transaction. | ||
| */ | ||
| public static Transaction createPurchase(Share share, int week) { | ||
| return new Purchase(share, week); | ||
| } | ||
|
|
||
| /** | ||
| * Create sale transaction | ||
| */ | ||
| public static Transaction createSale(Share share, int week) { | ||
| return new Sale(share, week); | ||
| } | ||
| /** | ||
| * Create sale transaction. | ||
| */ | ||
| public static Transaction createSale(Share share, int week) { | ||
| return new Sale(share, week); | ||
| } | ||
|
|
||
| } |