public Iterable < MetricsInfo > filter ( Iterable < MetricsInfo > metricsInfos ) { List < MetricsInfo > metricsFiltered = new ArrayList < MetricsInfo > ( ) ; for ( MetricsInfo metricsInfo : metricsInfos ) { if ( contains ( metricsInfo . getName ( ) ) ) { metricsFiltered . add ( metricsInfo ) ; } } return metricsFiltered ; }
Return an immutable view of filtered metrics