Class Account

java.lang.Object
de.calamanari.pk.servicestub.Account

public class Account
extends java.lang.Object
Account - supplementary class
Author:
Karl Eilebrecht
  • Constructor Summary

    Constructors
    Constructor Description
    Account​(java.lang.String accountId, java.lang.String firstName, java.lang.String lastName, java.lang.String street, java.lang.String zipCode, java.lang.String city)
    Creates new address with the given attributes
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getAccountId()
    Returns the account id
    java.lang.String getCity()
    Returns the city
    java.lang.String getFirstName()
    Returns the first name
    java.lang.String getLastName()
    Returns the last name
    java.lang.String getStreet()
    Returns the street
    java.lang.String getZipCode()
    Returns the zip code
    void setCity​(java.lang.String city)
    Sets the city
    void setFirstName​(java.lang.String firstName)
    Sets the first name
    void setLastName​(java.lang.String lastName)
    Sets the last name
    void setStreet​(java.lang.String street)
    Sets the street
    void setZipCode​(java.lang.String zipCode)
    Sets the zip code
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Account

      public Account​(java.lang.String accountId, java.lang.String firstName, java.lang.String lastName, java.lang.String street, java.lang.String zipCode, java.lang.String city)
      Creates new address with the given attributes
      Parameters:
      accountId - identifier
      firstName - person's first name
      lastName - person's last name
      street - address field
      zipCode - address field
      city - address field
  • Method Details

    • getAccountId

      public java.lang.String getAccountId()
      Returns the account id
      Returns:
      account id
    • getFirstName

      public java.lang.String getFirstName()
      Returns the first name
      Returns:
      first name
    • setFirstName

      public void setFirstName​(java.lang.String firstName)
      Sets the first name
      Parameters:
      firstName - person's first name
    • getLastName

      public java.lang.String getLastName()
      Returns the last name
      Returns:
      last name
    • setLastName

      public void setLastName​(java.lang.String lastName)
      Sets the last name
      Parameters:
      lastName - person's last name
    • getStreet

      public java.lang.String getStreet()
      Returns the street
      Returns:
      street
    • setStreet

      public void setStreet​(java.lang.String street)
      Sets the street
      Parameters:
      street - address field
    • getZipCode

      public java.lang.String getZipCode()
      Returns the zip code
      Returns:
      zip code
    • setZipCode

      public void setZipCode​(java.lang.String zipCode)
      Sets the zip code
      Parameters:
      zipCode - address field
    • getCity

      public java.lang.String getCity()
      Returns the city
      Returns:
      city
    • setCity

      public void setCity​(java.lang.String city)
      Sets the city
      Parameters:
      city - address field
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object