- All Implemented Interfaces:
- Direct Known Subclasses:
- Enclosing class:
public static class Message.RecipientType extends Object implements SerializableThis inner class defines the types of recipients allowed by the Message class. The currently defined types are TO, CC and BCC. Note that this class only has a protected constructor, thereby restricting new Recipient types to either this class or subclasses. This effectively implements an enumeration of the allowed Recipient types. The following code sample shows how to use this class to obtain the "TO" recipients from a message.
Message msg = folder.getMessages(1); Address a = m.getRecipients(Message.RecipientType.TO);