public StringBuilder append (StringBuilder builder) { if (builder == null) appendNull(); else append0(builder.chars, 0, builder.length); return this; }
public StringBuilder append (StringBuilder builder, int start, int end) { if (builder == null) appendNull(); else append0(builder.chars, start, end); return this; }
public StringBuilder append (StringBuilder builder) { if (builder == null) appendNull(); else append0(builder.chars, 0, builder.length); return this; }
public StringBuilder append (StringBuilder builder, int start, int end) { if (builder == null) appendNull(); else append0(builder.chars, start, end); return this; }
/** Appends the string representation of the specified {@code Object}. The {@code Object} value is converted to a string * according to the rule defined by {@link String#valueOf(Object)}. * * @param obj the {@code Object} to append. * @return this builder. * @see String#valueOf(Object) */ public StringBuilder append (Object obj) { if (obj == null) { appendNull(); } else { append0(obj.toString()); } return this; }
final void append0 (String string) { if (string == null) { appendNull(); return; } int adding = string.length(); int newSize = length + adding; if (newSize > chars.length) { enlargeBuffer(newSize); } string.getChars(0, adding, chars, length); length = newSize; }
final void append0 (String string) { if (string == null) { appendNull(); return; } int adding = string.length(); int newSize = length + adding; if (newSize > chars.length) { enlargeBuffer(newSize); } string.getChars(0, adding, chars, length); length = newSize; }
/** Appends the string representation of the specified {@code Object}. The {@code Object} value is converted to a string * according to the rule defined by {@link String#valueOf(Object)}. * * @param obj the {@code Object} to append. * @return this builder. * @see String#valueOf(Object) */ public StringBuilder append (Object obj) { if (obj == null) { appendNull(); } else { append0(obj.toString()); } return this; }
/** Appends the string representation of the specified {@code CharSequence}. If the {@code CharSequence} is {@code null}, then * the string {@code "null"} is appended. * * @param csq the {@code CharSequence} to append. * @return this builder. */ public StringBuilder append (CharSequence csq) { if (csq == null) { appendNull(); } else if (csq instanceof StringBuilder) { StringBuilder builder = (StringBuilder)csq; append0(builder.chars, 0, builder.length); } else { append0(csq.toString()); } return this; }
/** Appends the string representation of the specified {@code CharSequence}. If the {@code CharSequence} is {@code null}, then * the string {@code "null"} is appended. * * @param csq the {@code CharSequence} to append. * @return this builder. */ public StringBuilder append (CharSequence csq) { if (csq == null) { appendNull(); } else if (csq instanceof StringBuilder) { StringBuilder builder = (StringBuilder)csq; append0(builder.chars, 0, builder.length); } else { append0(csq.toString()); } return this; }
public StringBuilder append (StringBuilder builder) { if (builder == null) appendNull(); else append0(builder.chars, 0, builder.length); return this; }
public StringBuilder append (StringBuilder builder, int start, int end) { if (builder == null) appendNull(); else append0(builder.chars, start, end); return this; }
final void append0 (String string) { if (string == null) { appendNull(); return; } int adding = string.length(); int newSize = length + adding; if (newSize > chars.length) { enlargeBuffer(newSize); } string.getChars(0, adding, chars, length); length = newSize; }
/** Appends the string representation of the specified {@code Object}. The {@code Object} value is converted to a string * according to the rule defined by {@link String#valueOf(Object)}. * * @param obj the {@code Object} to append. * @return this builder. * @see String#valueOf(Object) */ public StringBuilder append (Object obj) { if (obj == null) { appendNull(); } else { append0(obj.toString()); } return this; }
/** Appends the string representation of the specified {@code CharSequence}. If the {@code CharSequence} is {@code null}, then * the string {@code "null"} is appended. * * @param csq the {@code CharSequence} to append. * @return this builder. */ public StringBuilder append (CharSequence csq) { if (csq == null) { appendNull(); } else if (csq instanceof StringBuilder) { StringBuilder builder = (StringBuilder)csq; append0(builder.chars, 0, builder.length); } else { append0(csq.toString()); } return this; }