Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.james.mime4j.field.address
Class MailboxList

    java.lang.Object
      org.apache.james.mime4j.field.address.MailboxList

    public class MailboxList

extends java.lang.Object

An immutable, random-access list of Mailbox objects.

Constructor Summary
`MailboxList(java.util.ArrayList mailboxes, boolean dontCopy)`

Method Summary
`Mailbox` | `get(int index)` Gets an address.
`void` | `print()` Dumps a representation of this mailbox list to stdout, for debugging purposes.
`int` | `size()` The number of elements in this list.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### MailboxList

    public MailboxList(java.util.ArrayList mailboxes,
                       boolean dontCopy)

Parameters:
  `mailboxes` - An ArrayList that contains only Mailbox objects.
  `dontCopy` - true iff it is not possible for the mailboxes ArrayList to be modified by someone else.

Method Detail

### size

    public int size()

  The number of elements in this list.

### get

    public Mailbox get(int index)

  Gets an address.

### print

    public void print()

  Dumps a representation of this mailbox list to stdout, for debugging purposes.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.