Skip to content

Commit

Permalink
Added Checkstyle to TransactionFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
elisab3 committed May 24, 2026
1 parent 19b9c89 commit 3700545
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/main/java/Model/TransactionFactory.java
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);
}

}

0 comments on commit 3700545

Please sign in to comment.