ZipCloudBank's meh banking app.

AccountData.java 827B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /**
  2. * @author ZipCodeWilmington
  3. */
  4. public final class AccountData {
  5. private final int id;
  6. private final String name;
  7. private final String email;
  8. private final int balance;
  9. AccountData(int id, String name, String email, int balance) {
  10. this.id = id;
  11. this.name = name;
  12. this.email = email;
  13. this.balance = balance;
  14. }
  15. public int getId() {
  16. return id;
  17. }
  18. public String getName() {
  19. return name;
  20. }
  21. public String getEmail() {
  22. return email;
  23. }
  24. public int getBalance() {
  25. return balance;
  26. }
  27. @Override
  28. public String toString() {
  29. return "Account id: " + id + '\n' +
  30. "Name: " + name + '\n' +
  31. "Email: " + email + '\n' +
  32. "Balance: " + balance;
  33. }
  34. }