Class Account

java.lang.Object
moblima.entities.Account
Direct Known Subclasses:
Customer, Staff

public abstract class Account extends Object
The type Account.
  • Field Details

    • id

      protected String id
      The Id.
    • name

      protected String name
      The Name.
  • Constructor Details

    • Account

      public Account(String id, String name)
      Instantiates a new Account.
      Parameters:
      id - the id
      name - the name
    • Account

      public Account(String name)
      Instantiates a new Account.
      Parameters:
      name - the name
  • Method Details

    • getId

      public String getId()
      Gets id.
      Returns:
      the id
    • setId

      public void setId(String id)
      Sets id.
      Parameters:
      id - the id
    • getName

      public String getName()
      Gets name.
      Returns:
      the name
    • setName

      public void setName(String name)
      Sets name.
      Parameters:
      name - the name
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object