FileDocCategorySizeDatePackage
MailFolder.javaAPI DocExample800Sun Sep 02 14:59:00 BST 2001chap8

MailFolder

public class MailFolder extends Object
Contains a mail folder name, along with a list of MessageHeader objects.

Fields Summary
private String
folderName
private List
messages
Constructors Summary
public MailFolder(String folderName, List messages)

param
folderName the name of this mail folder.
param
messages a list of MessageHeader objects.

        this.folderName = folderName;
        this.messages = messages;
    
Methods Summary
public java.lang.StringgetFolderName()

return
the name of this mail folder.

        return this.folderName;
    
public java.util.IteratorgetMessages()

return
an iterator of MessageHeader objects.

        return this.messages.iterator();