Class Recipient

  • All Implemented Interfaces:

    public class Recipient
    extends Object
    implements Serializable
    Represents a recipient containing a person and/or organization and/or telecommunication address.

    All members of this class are allowed to be null.

    If both, the person and the organization, are defined, the person is expected to be a member of the specified organization.

    Jens Riemschneider
    See Also:
    Serialized Form
    • Constructor Detail

      • Recipient

        public Recipient()
        Constructs a recipient.
      • Recipient

        public Recipient​(Organization organization,
                         Person person,
                         Telecom telecom)
        Constructs a recipient.
        organization - the organization.
        person - the person.
        telecom - telecommunication address.
    • Method Detail

      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        hashCode in class Object
      • getPerson

        public Person getPerson()
      • setPerson

        public void setPerson​(Person person)
      • setOrganization

        public void setOrganization​(Organization organization)
      • getTelecom

        public Telecom getTelecom()
      • setTelecom

        public void setTelecom​(Telecom telecom)