Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dumb data carrier type #63

Open
boojongmin opened this issue Aug 7, 2023 · 0 comments
Open

dumb data carrier type #63

boojongmin opened this issue Aug 7, 2023 · 0 comments

Comments

@boojongmin
Copy link
Owner

설명

image

참고

샘플

public class TransferTask {
    private final Account sender;
    private final Account receiver;
    private final int amount;
 
    public TransferTask(Account sender, Account receiver, int amount) {
        this.sender = sender;
        this.receiver = receiver;
        this.amount = amount;
    }
 
    public Account sender() {
        return sender;
    }
 
    public int amount() {
        return amount;
    }
 
    public Account receiver() {
        return receiver;
    }
 
    // Other methods elided
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant