Class Recipient

  • All Implemented Interfaces:
    Serializable

    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.

    Author:
    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.
        Parameters:
        organization - the organization.
        person - the person.
        telecom - telecommunication address.
    • Method Detail

      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        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)