public class DomainList extends AbstractList<String> implements Serializable
modCount| Constructor and Description |
|---|
DomainList(List<String> domains,
boolean dontCopy) |
| Modifier and Type | Method and Description |
|---|---|
String |
get(int index)
Gets the domain name or domain literal at the specified index.
|
int |
size()
The number of elements in this list.
|
String |
toRouteString()
Returns the list of domains formatted as a route string (not including
the trailing ':').
|
String |
toString() |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArraypublic int size()
size in interface Collection<String>size in interface List<String>size in class AbstractCollection<String>public String get(int index)
get in interface List<String>get in class AbstractList<String>IndexOutOfBoundsException - If index is < 0 or >= size().public String toRouteString()
public String toString()
toString in class AbstractCollection<String>Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.