cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-examples/src/main/java/org/cloudbus/cloudsim/examples/power/util/Helper.java
private <T> void addStringToBuffer(final String label, String format, final T value, String suffix) {
        final String delimiter = outputInCsv ? "," : "\n";
        suffix = outputInCsv ? "" : " " + suffix;
        format = outputInCsv ? format : label + ": " + format;
        final String line = String.format(format, value) + suffix + delimiter;
        buffer.append(line);
    }
/**
     * Adds a string to the {@link #buffer} so that it can be outputed to a CSV file or directly printed to console.
     *
     * @param label  the label that will be printed before the value if the format is not CSV
     * @param format the format to be used to print the value.
     * @param value  the value to be printed
     * @param suffix the suffix that will be printed in the end of the line if the format is not CSV
     */
Adds a string to the  #buffer so that it can be outputed to a CSV file or directly printed to console.
@param label  the label that will be printed before the value if the format is not CSV
@param format the format to be used to print the value.
@param value  the value to be printed
@param suffix the suffix that will be printed in the end of the line if the format is not CSV
Adds a string to the #buffer so that it can be outputed to a CSV file or directly printed to console . @param label the label that will be printed before the value if the format is not CSV @param format the format to be used to print the value . @param value the value to be printed @param suffix the suffix that will be printed in the end of the line if the format is not CSV
private <T> void addStringToBuffer(final String label, String format, final T value, String suffix) {
        final String delimiter = outputInCsv ? "," : "\n";
        suffix = outputInCsv ? "" : " " + suffix;
        format = outputInCsv ? format : label + ": " + format;
        final String line = String.format(format, value) + suffix + delimiter;
        buffer.append(line);
    }
private < T > void addStringToBuffer ( final String label , String format , final T value , String suffix ) { final String delimiter = outputInCsv ? "," : "\n" ; suffix = outputInCsv ? "" : " " + suffix ; format = outputInCsv ? format : label + ": " + format ; final String line = String . format ( format , value ) + suffix + delimiter ; buffer . append ( line ) ; }
Adds a string to the {@link #buffer} so that it can be outputed to a CSV file or directly printed to console.
Adds a string to the { @link #buffer } so that it can be outputed to a CSV file or directly printed to console .