Class ComponentList<T extends Component>

    • Constructor Detail

      • ComponentList

        public ComponentList()
        Default constructor.
      • ComponentList

        public ComponentList​(int initialCapacity)
        Creates a new instance with the specified initial capacity.
        Parameters:
        initialCapacity - the initial capacity of the list
      • ComponentList

        public ComponentList​(List<? extends T> components)
        Create new component list containing the components in the specified list.
        Parameters:
        components -
    • Method Detail

      • getComponent

        public final T getComponent​(String aName)
        Returns the first component of specified name.
        Parameters:
        aName - name of component to return
        Returns:
        a component or null if no matching component found
      • getComponents

        public final <C extends TList<C> getComponents​(String name)
        Returns a list containing all components with specified name.
        Parameters:
        name - name of components to return
        Returns:
        a list of components with the matching name