public IMetric < ? > getMetricFromName ( final String name ) { IMetric < ? > metric = null ; if ( name != null ) { for ( final IMetric < ? > currentMetric : this . metrics ) { if ( currentMetric . getName ( ) . equals ( name ) ) { metric = currentMetric ; break ; } } } return metric ; }
Get metric object for a given metric name