public static String concat ( CharacterFilter filter , Character delimiter , String ... components ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( filter . filterCharacters ( components [ 0 ] ) ) ; for ( int x = 1 ; x < components . length ; x ++ ) { sb . append ( delimiter ) ; sb . append ( filter . filterCharacters ( components [ x ] ) ) ; } return sb . toString ( ) ; }
Concatenates the given component names separated by the delimiter character . Additionally the character filter is applied to all component names .