|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.mime4j.field.address.DomainList
public class DomainList
An immutable, random-access list of Strings (that are supposedly domain names or domain literals).
| Constructor Summary | |
|---|---|
DomainList(java.util.ArrayList domains,
boolean dontCopy)
|
|
| Method Summary | |
|---|---|
java.lang.String |
get(int index)
Gets the domain name or domain literal at the specified index. |
int |
size()
The number of elements in this list. |
java.lang.String |
toRouteString()
Returns the list of domains formatted as a route string (not including the trailing ':'). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DomainList(java.util.ArrayList domains,
boolean dontCopy)
domains - An ArrayList that contains only String objects.dontCopy - true iff it is not possible for the domains ArrayList to be modified by someone else.| Method Detail |
|---|
public int size()
public java.lang.String get(int index)
java.lang.IndexOutOfBoundsException - If index is < 0 or >= size().public java.lang.String toRouteString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||