Skip to content

Commit

Permalink
Merge pull request #37 from IDATT2003-gruppe06/31-implement-factory-f…
Browse files Browse the repository at this point in the history
…or-creation-of-transactions

31 implement factory for creation of transactions
  • Loading branch information
nolydvo authored Apr 17, 2026
2 parents 1f2982d + 77700e0 commit c9c91b0
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package millions.calculators;

import millions.Share;

public class TransactionCalculatorFactory {

private TransactionCalculatorFactory() {}

public TransactionCalculator createPurchaseCalculator(Share share) {
return new PurchaseCalculator(share);
}

public TransactionCalculator createSaleCalculator(Share share) {
return new SaleCalculator(share);
}
}

0 comments on commit c9c91b0

Please sign in to comment.