public static String buildToString ( Object ... params ) { StringBuffer finalMessage = new StringBuffer ( ) ; int i = 0 ; for ( Object object : params ) { if ( i ++ > 0 ) { finalMessage . append ( FIELD_SEPARATOR ) ; } if ( object instanceof List < ? > ) { finalMessage . append ( JKCollectionUtil . toString ( ( List < ? > ) object ) ) ; } else { finalMessage . append ( JKObjectUtil . toString ( object , true ) ) ; } } String fullText = finalMessage . toString ( ) ; return fullText ; }
Builds the to string .