GeneralUtility/src/main/java/com/techshroom/tscore/util/QuickStringBuilder.java
public static final String concatToStringComplex(Object... args) {
        StringBuilder sb = new StringBuilder();
        boolean addQuotes = false;
        for (Object o : args) {
            boolean strBfrConv = o instanceof String;
            if (strBfrConv && addQuotes) {
                sb.append("'");
            }
            o = convert(o);
            sb.append(o);
            if (strBfrConv) {
                if (addQuotes) {
                    sb.append("'");
                } else {
                    addQuotes = endsWith_array((String) o,
                            BUILD_DEFAULT_ENDSWITH);
                    continue;
                }
            }
            addQuotes = false;
        }
        return sb.toString();
    }
/**
     * Makes a string from the result of concatenating the given arguments. Adds
     * some special additions and converts arrays to strings properly.
     * 
     * @param args
     *            - the input
     * @return the resultant string
     */
Makes a string from the result of concatenating the given arguments. Adds
some special additions and converts arrays to strings properly.

@param args
- the input
@return the resultant string
Makes a string from the result of concatenating the given arguments . Adds some special additions and converts arrays to strings properly . @param args - the input @return the resultant string
public static final String concatToStringComplex(Object... args) {
        StringBuilder sb = new StringBuilder();
        boolean addQuotes = false;
        for (Object o : args) {
            boolean strBfrConv = o instanceof String;
            if (strBfrConv && addQuotes) {
                sb.append("'");
            }
            o = convert(o);
            sb.append(o);
            if (strBfrConv) {
                if (addQuotes) {
                    sb.append("'");
                } else {
                    addQuotes = endsWith_array((String) o,
                            BUILD_DEFAULT_ENDSWITH);
                    continue;
                }
            }
            addQuotes = false;
        }
        return sb.toString();
    }
public static final String concatToStringComplex ( Object ... args ) { StringBuilder sb = new StringBuilder ( ) ; boolean addQuotes = false ; for ( Object o : args ) { boolean strBfrConv = o instanceof String ; if ( strBfrConv && addQuotes ) { sb . append ( "'" ) ; } o = convert ( o ) ; sb . append ( o ) ; if ( strBfrConv ) { if ( addQuotes ) { sb . append ( "'" ) ; } else { addQuotes = endsWith_array ( ( String ) o , BUILD_DEFAULT_ENDSWITH ) ; continue ; } } addQuotes = false ; } return sb . toString ( ) ; }
Makes a string from the result of concatenating the given arguments.
Makes a string from the result of concatenating the given arguments .