All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.epos.eposdatamodel.LegalName Maven / Gradle / Ivy

There is a newer version: 2.5.21
Show newest version
package org.epos.eposdatamodel;

import java.util.Objects;

/**
 * Physical address of the item.
 */
public class LegalName extends EPOSDataModelEntity {
    /**
     * The language assigned to the legalname
     **/
    private String language = null;

    /**
     * The legalname of an organization
     **/
    private String legalname = null;

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getLegalname() {
        return legalname;
    }

    public void setLegalname(String legalname) {
        this.legalname = legalname;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        LegalName legalName = (LegalName) o;
        return Objects.equals(language, legalName.language) && Objects.equals(legalname, legalName.legalname);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), language, legalname);
    }

    @Override
    public String toString() {
        return "LegalName{" +
                "language='" + language + '\'' +
                ", legalname='" + legalname + '\'' +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy