public static List < Metric > toValidValues ( List < Metric > metrics ) { return metrics . stream ( ) . map ( ValidCharacters :: toValidValue ) . collect ( Collectors . toList ( ) ) ; }
Create a new list of metrics where all metrics are using the valid character set .