Class LegalPerson

    • Constructor Summary

      Constructors 
      Constructor Description
      LegalPerson​(java.lang.String legalName, java.lang.String addressLine, java.lang.String zip, java.lang.String country)
      Constructor for a natural person with specified values.
    • Constructor Detail

      • LegalPerson

        public LegalPerson​(java.lang.String legalName,
                           java.lang.String addressLine,
                           java.lang.String zip,
                           java.lang.String country)
        Constructor for a natural person with specified values.
        Parameters:
        legalName - legal name of the Person.
        addressLine - address of the Person.
        zip - zip of the Person.
        country - country of the Person.
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Person
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class Person
      • getLegalName

        public java.lang.String getLegalName()
        Getter for the field legalName.
        Returns:
        the legalName
      • setLegalName

        public void setLegalName​(java.lang.String legalName)
        Setter for the field legalName.
        Parameters:
        legalName - the legalName to set
      • toString

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