/** * Appends an object followed by a new line to this string builder. * Appending null will call {@link #appendNull()}. * * @param obj the object to append * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendln(Object obj) { return append(obj).appendNewLine(); }
/** * Appends another string builder followed by a new line to this string builder. * Appending null will call {@link #appendNull()}. * * @param str the string builder to append * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendln(StrBuilder str) { return append(str).appendNewLine(); }
/** * Appends a char array followed by a new line to the string builder. * Appending null will call {@link #appendNull()}. * * @param chars the char array to append * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendln(char[] chars) { return append(chars).appendNewLine(); }
/** * Appends a char value followed by a new line to the string builder. * * @param ch the value to append * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendln(char ch) { return append(ch).appendNewLine(); }
/** * Appends a long value followed by a new line to the string builder using <code>String.valueOf</code>. * * @param value the value to append * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendln(long value) { return append(value).appendNewLine(); }
/** * Appends a string followed by a new line to this string builder. * Appending null will call {@link #appendNull()}. * * @param str the string to append * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendln(String str) { return append(str).appendNewLine(); }
/** * Appends an int value followed by a new line to the string builder using <code>String.valueOf</code>. * * @param value the value to append * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendln(int value) { return append(value).appendNewLine(); }
/** * Appends a string buffer followed by a new line to this string builder. * Appending null will call {@link #appendNull()}. * * @param str the string buffer to append * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendln(StringBuffer str) { return append(str).appendNewLine(); }
/** * Appends a boolean value followed by a new line to the string builder. * * @param value the value to append * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendln(boolean value) { return append(value).appendNewLine(); }
/** * Appends a float value followed by a new line to the string builder using <code>String.valueOf</code>. * * @param value the value to append * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendln(float value) { return append(value).appendNewLine(); }
/** * Appends a double value followed by a new line to the string builder using <code>String.valueOf</code>. * * @param value the value to append * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendln(double value) { return append(value).appendNewLine(); }
/** * Appends part of a string followed by a new line to this string builder. * Appending null will call {@link #appendNull()}. * * @param str the string to append * @param startIndex the start index, inclusive, must be valid * @param length the length to append, must be valid * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendln(String str, int startIndex, int length) { return append(str, startIndex, length).appendNewLine(); }
/** * Appends a char array followed by a new line to the string builder. * Appending null will call {@link #appendNull()}. * * @param chars the char array to append * @param startIndex the start index, inclusive, must be valid * @param length the length to append, must be valid * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendln(char[] chars, int startIndex, int length) { return append(chars, startIndex, length).appendNewLine(); }
/** * Appends part of a string buffer followed by a new line to this string builder. * Appending null will call {@link #appendNull()}. * * @param str the string to append * @param startIndex the start index, inclusive, must be valid * @param length the length to append, must be valid * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendln(StringBuffer str, int startIndex, int length) { return append(str, startIndex, length).appendNewLine(); }
/** * Appends part of a string builder followed by a new line to this string builder. * Appending null will call {@link #appendNull()}. * * @param str the string to append * @param startIndex the start index, inclusive, must be valid * @param length the length to append, must be valid * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendln(StrBuilder str, int startIndex, int length) { return append(str, startIndex, length).appendNewLine(); }
/** * Appends a long value followed by a new line to the string builder using <code>String.valueOf</code>. * * @param value the value to append * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendln(long value) { return append(value).appendNewLine(); }
/** * Appends a boolean value followed by a new line to the string builder. * * @param value the value to append * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendln(boolean value) { return append(value).appendNewLine(); }
/** * Appends an int value followed by a new line to the string builder using <code>String.valueOf</code>. * * @param value the value to append * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendln(int value) { return append(value).appendNewLine(); }
/** * Appends a char value followed by a new line to the string builder. * * @param ch the value to append * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendln(char ch) { return append(ch).appendNewLine(); }
/** * Appends a float value followed by a new line to the string builder using <code>String.valueOf</code>. * * @param value the value to append * @return this, to enable chaining * @since 2.3 */ public StrBuilder appendln(float value) { return append(value).appendNewLine(); }