public class ComponentList<T extends Component> extends ArrayList<T> implements Serializable
modCount
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(List<? extends T> components)
Create new component list containing the components in the specified list.
|
Modifier and Type | Method and Description |
---|---|
Optional<T> |
getComponent(String aName)
Returns the first component of specified name.
|
<C extends T> |
getComponents(String name)
Returns a list containing all components with specified name.
|
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
equals, hashCode
containsAll
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
parallelStream, stream
public ComponentList()
public ComponentList(int initialCapacity)
initialCapacity
- the initial capacity of the listpublic ComponentList(ComponentList<? extends T> components) throws URISyntaxException
components
- a component list to copyURISyntaxException
- where component data contains an invalid URIpublic final String toString()
toString
in class AbstractCollection<T extends Component>
public final Optional<T> getComponent(String aName)
aName
- name of component to returnpublic final <C extends T> ComponentList<C> getComponents(String name)
name
- name of components to return