Class Group
- java.lang.Object
-
- org.apache.james.mime4j.dom.address.Address
-
- org.apache.james.mime4j.dom.address.Group
-
- All Implemented Interfaces:
java.io.Serializable
public class Group extends Address
A named group of zero or more mailboxes.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private MailboxListmailboxListprivate java.lang.Stringnameprivate static longserialVersionUID
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoAddMailboxesTo(java.util.List<Mailbox> results)Adds any mailboxes represented by this address into the given List.MailboxListgetMailboxes()Returns the mailboxes in this group.java.lang.StringgetName()Returns the group name.java.lang.StringtoString()-
Methods inherited from class org.apache.james.mime4j.dom.address.Address
addMailboxesTo
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
name
private final java.lang.String name
-
mailboxList
private final MailboxList mailboxList
-
-
Constructor Detail
-
Group
public Group(java.lang.String name, MailboxList mailboxes)- Parameters:
name- The group name.mailboxes- The mailboxes in this group.
-
Group
public Group(java.lang.String name, Mailbox... mailboxes)- Parameters:
name- The group name.mailboxes- The mailboxes in this group.
-
Group
public Group(java.lang.String name, java.util.Collection<Mailbox> mailboxes)- Parameters:
name- The group name.mailboxes- The mailboxes in this group.
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the group name.
-
getMailboxes
public MailboxList getMailboxes()
Returns the mailboxes in this group.
-
doAddMailboxesTo
protected void doAddMailboxesTo(java.util.List<Mailbox> results)
Description copied from class:AddressAdds any mailboxes represented by this address into the given List. Must be overridden by concrete subclasses.- Specified by:
doAddMailboxesToin classAddress
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-