java.lang.Object
org.apache.james.mime4j.dom.address.Address
org.apache.james.mime4j.dom.address.Group
All Implemented Interfaces:
Serializable

public class Group extends Address
A named group of zero or more mailboxes.
See Also:
  • Field Details

  • Constructor Details

    • Group

      public Group(String name, MailboxList mailboxes)
      Parameters:
      name - The group name.
      mailboxes - The mailboxes in this group.
    • Group

      public Group(String name, Mailbox... mailboxes)
      Parameters:
      name - The group name.
      mailboxes - The mailboxes in this group.
    • Group

      public Group(String name, Collection<Mailbox> mailboxes)
      Parameters:
      name - The group name.
      mailboxes - The mailboxes in this group.
  • Method Details

    • getName

      public String getName()
      Returns the group name.
    • getMailboxes

      public MailboxList getMailboxes()
      Returns the mailboxes in this group.
    • doAddMailboxesTo

      protected void doAddMailboxesTo(List<Mailbox> results)
      Description copied from class: Address
      Adds any mailboxes represented by this address into the given List. Must be overridden by concrete subclasses.
      Specified by:
      doAddMailboxesTo in class Address
    • toString

      public String toString()
      Overrides:
      toString in class Object