/** * Appends an object to the builder padding on the left to a fixed width. * The <code>String.valueOf</code> of the <code>int</code> value is used. * If the formatted value is larger than the length, the left hand side is lost. * * @param value the value to append * @param width the fixed field width, zero or negative has no effect * @param padChar the pad character to use * @return this, to enable chaining */ public StrBuilder appendFixedWidthPadLeft(int value, int width, char padChar) { return appendFixedWidthPadLeft(String.valueOf(value), width, padChar); }
/** * Appends an object to the builder padding on the left to a fixed width. * The <code>String.valueOf</code> of the <code>int</code> value is used. * If the formatted value is larger than the length, the left hand side is lost. * * @param value the value to append * @param width the fixed field width, zero or negative has no effect * @param padChar the pad character to use * @return this, to enable chaining */ public StrBuilder appendFixedWidthPadLeft(int value, int width, char padChar) { return appendFixedWidthPadLeft(String.valueOf(value), width, padChar); }
/** * Appends an object to the builder padding on the left to a fixed width. * The <code>String.valueOf</code> of the <code>int</code> value is used. * If the formatted value is larger than the length, the left hand side is lost. * * @param value the value to append * @param width the fixed field width, zero or negative has no effect * @param padChar the pad character to use * @return this, to enable chaining */ public StrBuilder appendFixedWidthPadLeft(int value, int width, char padChar) { return appendFixedWidthPadLeft(String.valueOf(value), width, padChar); }
/** * Appends an object to the builder padding on the left to a fixed width. * The <code>String.valueOf</code> of the <code>int</code> value is used. * If the formatted value is larger than the length, the left hand side is lost. * * @param value the value to append * @param width the fixed field width, zero or negative has no effect * @param padChar the pad character to use * @return this, to enable chaining */ public StrBuilder appendFixedWidthPadLeft(int value, int width, char padChar) { return appendFixedWidthPadLeft(String.valueOf(value), width, padChar); }
/** * Appends an object to the builder padding on the left to a fixed width. * The <code>String.valueOf</code> of the <code>int</code> value is used. * If the formatted value is larger than the length, the left hand side is lost. * * @param value the value to append * @param width the fixed field width, zero or negative has no effect * @param padChar the pad character to use * @return this, to enable chaining */ public StrBuilder appendFixedWidthPadLeft(int value, int width, char padChar) { return appendFixedWidthPadLeft(String.valueOf(value), width, padChar); }
/** * Appends an object to the builder padding on the left to a fixed width. * The <code>String.valueOf</code> of the <code>int</code> value is used. * If the formatted value is larger than the length, the left hand side is lost. * * @param value the value to append * @param width the fixed field width, zero or negative has no effect * @param padChar the pad character to use * @return this, to enable chaining */ public StrBuilder appendFixedWidthPadLeft(int value, int width, char padChar) { return appendFixedWidthPadLeft(String.valueOf(value), width, padChar); }
strb.appendFixedWidthPadLeft(metricsCtx.id(), 10, ' ') .append(TABLE_BORDER_VERTICAL) .appendFixedWidthPadLeft(FMT_DATE_METRICS_TABLE.format(new Date()), 12, ' ') .append(TABLE_BORDER_VERTICAL); if (stdOutColorFlag) { .appendFixedWidthPadLeft(snapshot.concurrencySnapshot().last(), 10, ' ') .append(TABLE_BORDER_VERTICAL) .appendFixedWidthPadRight( formatFixedWidth(snapshot.concurrencySnapshot().mean(), 10), 10, ' ') .append(TABLE_BORDER_VERTICAL) .appendFixedWidthPadLeft(succCount, 12, ' ') .append(TABLE_BORDER_VERTICAL); if (stdOutColorFlag) { strb.append(getFailureRatioAnsiColorCode(succCount, failCount)); strb.appendFixedWidthPadLeft(failCount, 6, ' '); if (stdOutColorFlag) { strb.append(RESET); formatFixedWidth(snapshot.byteSnapshot().last() / MIB, 7), 7, ' ') .append(TABLE_BORDER_VERTICAL) .appendFixedWidthPadLeft((long) snapshot.latencySnapshot().mean(), 10, ' ') .append(TABLE_BORDER_VERTICAL) .appendFixedWidthPadLeft((long) snapshot.durationSnapshot().mean(), 11, ' ') .appendNewLine();