public static Function < String , String > toLowerCaseFunction ( final Locale locale ) { return new Function < String , String > ( ) { @ Override public String apply ( final String s ) { return s . toLowerCase ( locale ) ; } @ Override public String toString ( ) { return "toLowercase(" + locale + ")" ; } } ; }
A Guava function for converting strings to lowercase .