@ SuppressWarnings ( "unchecked" ) public final < C extends T > ComponentList < C > getComponents ( final String name ) { final ComponentList < C > components = new ComponentList < C > ( ) ; for ( final T c : this ) { if ( c . getName ( ) . equals ( name ) ) { components . add ( ( C ) c ) ; } } return components ; }
Returns a list containing all components with specified name .