feat: add advanced multithreading banking system skeleton

This commit is contained in:
2026-06-03 16:48:39 +03:30
parent 1b38f250e5
commit ac35c817ee
7 changed files with 250 additions and 0 deletions
@@ -0,0 +1,39 @@
package dev.banking.model;
public class Transaction {
private final TransactionType type;
private final int sourceAccountId;
private final int targetAccountId;
private final int amount;
public Transaction(
TransactionType type,
int sourceAccountId,
int targetAccountId,
int amount
) {
this.type = type;
this.sourceAccountId = sourceAccountId;
this.targetAccountId = targetAccountId;
this.amount = amount;
}
public TransactionType getType() {
return type;
}
public int getSourceAccountId() {
return sourceAccountId;
}
public int getTargetAccountId() {
return targetAccountId;
}
public int getAmount() {
return amount;
}
}