123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
-
-
- /**
- * @author ZipCodeWilmington
- */
- public final class AccountData {
-
- private final int id;
- private final String name;
- private final String email;
-
- private final int balance;
-
- AccountData(int id, String name, String email, int balance) {
- this.id = id;
- this.name = name;
- this.email = email;
- this.balance = balance;
- }
-
- public int getId() {
- return id;
- }
-
- public String getName() {
- return name;
- }
-
- public String getEmail() {
- return email;
- }
-
- public int getBalance() {
- return balance;
- }
-
- @Override
- public String toString() {
- return "Account id: " + id + '\n' +
- "Name: " + name + '\n' +
- "Email: " + email + '\n' +
- "Balance: " + balance;
- }
- }
|