Class AttendeeCollection

    • Constructor Detail

      • AttendeeCollection

        public AttendeeCollection()
        Initializes a new instance of the AttendeeCollection class.
    • Method Detail

      • add

        public void add​(Attendee attendee)
        Adds an attendee to the collection.
        Parameters:
        attendee - the attendee
      • add

        public Attendee add​(String smtpAddress)
                     throws Exception
        Adds an attendee to the collection.
        Parameters:
        smtpAddress - the smtp address
        Returns:
        An Attendee instance initialized with the provided SMTP address.
        Throws:
        Exception - the exception
      • add

        public Attendee add​(String name,
                            String smtpAddress)
        Adds an attendee to the collection.
        Parameters:
        name - the name
        smtpAddress - the smtp address
        Returns:
        An Attendee instance initialized with the provided name and SMTP address.
      • clear

        public void clear()
        Clears the collection.
      • removeAt

        public void removeAt​(int index)
        Removes an attendee from the collection.
        Parameters:
        index - the index
      • remove

        public boolean remove​(Attendee attendee)
                       throws Exception
        Removes an attendee from the collection.
        Parameters:
        attendee - the attendee
        Returns:
        True if the attendee was successfully removed from the collection, false otherwise.
        Throws:
        Exception - the exception