public class ComponentList<T extends Component>
extends java.util.ArrayList<T>
implements java.io.Serializable
Constructor and Description |
---|
ComponentList()
Default constructor.
|
ComponentList(ComponentList<? extends T> components)
Creates a deep copy of the specified component list.
|
ComponentList(int initialCapacity)
Creates a new instance with the specified initial capacity.
|
ComponentList(java.util.List<? extends T> components)
Create new component list containing the components in the specified list.
|
Modifier and Type | Method and Description |
---|---|
T |
getComponent(java.lang.String aName)
Returns the first component of specified name.
|
<C extends T> |
getComponents(java.lang.String name)
Returns a list containing all components with specified name.
|
java.lang.String |
toString() |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
public ComponentList()
public ComponentList(int initialCapacity)
initialCapacity
- the initial capacity of the listpublic ComponentList(ComponentList<? extends T> components) throws java.text.ParseException, java.io.IOException, java.net.URISyntaxException
components
- a component list to copyjava.io.IOException
- where an error occurs reading component datajava.text.ParseException
- where component data cannot be parsedjava.net.URISyntaxException
- where component data contains an invalid URIpublic ComponentList(java.util.List<? extends T> components)
components
- public final java.lang.String toString()
public final T getComponent(java.lang.String aName)
aName
- name of component to returnpublic final <C extends T> ComponentList<C> getComponents(java.lang.String name)
name
- name of components to return