/** * Appends the specified CharSequence to this buffer. * <p> * If the specified CharSequence is {@code null} the string {@code "null"} * is appended, otherwise the contents of the specified CharSequence is * appended. * * @param s * the CharSequence to append. * @return this StringBuffer. * @since 1.5 */ public synchronized StringBuffer append(CharSequence s) { if (s == null) { appendNull(); } else { append0(s, 0, s.length()); } return this; }
/** * Adds the string representation of the specified object to the end of this * StringBuffer. * <p> * If the specified object is {@code null} the string {@code "null"} is * appended, otherwise the objects {@code toString} is used to get its * string representation. * * @param obj * the object to append (may be null). * @return this StringBuffer. * @see String#valueOf(Object) */ public synchronized StringBuffer append(Object obj) { if (obj == null) { appendNull(); } else { append0(obj.toString()); } return this; }
/** * Adds the specified StringBuffer to the end of this buffer. * <p> * If the specified StringBuffer is {@code null} the string {@code "null"} * is appended, otherwise the contents of the specified StringBuffer is * appended. * * @param sb * the StringBuffer to append (may be null). * @return this StringBuffer. * * @since 1.4 */ public synchronized StringBuffer append(StringBuffer sb) { if (sb == null) { appendNull(); } else { synchronized (sb) { append0(sb.getValue(), 0, sb.length()); } } return this; }
/** * Appends the specified CharSequence to this buffer. * <p> * If the specified CharSequence is {@code null} the string {@code "null"} * is appended, otherwise the contents of the specified CharSequence is * appended. * * @param s * the CharSequence to append. * @return this StringBuffer. * @since 1.5 */ public synchronized StringBuffer append(CharSequence s) { if (s == null) { appendNull(); } else { append0(s, 0, s.length()); } return this; }
/** * Appends the specified CharSequence to this buffer. * <p> * If the specified CharSequence is {@code null} the string {@code "null"} * is appended, otherwise the contents of the specified CharSequence is * appended. * * @param s * the CharSequence to append. * @return this StringBuffer. * @since 1.5 */ public synchronized StringBuffer append(CharSequence s) { if (s == null) { appendNull(); } else { append0(s, 0, s.length()); } return this; }
/** * Appends the specified CharSequence to this buffer. * <p> * If the specified CharSequence is {@code null} the string {@code "null"} * is appended, otherwise the contents of the specified CharSequence is * appended. * * @param s * the CharSequence to append. * @return this StringBuffer. * @since 1.5 */ public synchronized StringBuffer append(CharSequence s) { if (s == null) { appendNull(); } else { append0(s, 0, s.length()); } return this; }
/** * Appends the specified CharSequence to this buffer. * <p> * If the specified CharSequence is {@code null} the string {@code "null"} * is appended, otherwise the contents of the specified CharSequence is * appended. * * @param s * the CharSequence to append. * @return this StringBuffer. * @since 1.5 */ public synchronized StringBuffer append(CharSequence s) { if (s == null) { appendNull(); } else { append0(s, 0, s.length()); } return this; }
/** * Appends the specified CharSequence to this buffer. * <p> * If the specified CharSequence is {@code null} the string {@code "null"} * is appended, otherwise the contents of the specified CharSequence is * appended. * * @param s * the CharSequence to append. * @return this StringBuffer. * @since 1.5 */ public synchronized StringBuffer append(CharSequence s) { if (s == null) { appendNull(); } else { append0(s, 0, s.length()); } return this; }
/** * Adds the string representation of the specified object to the end of this * StringBuffer. * <p> * If the specified object is {@code null} the string {@code "null"} is * appended, otherwise the objects {@code toString} is used to get its * string representation. * * @param obj * the object to append (may be null). * @return this StringBuffer. * @see String#valueOf(Object) */ public synchronized StringBuffer append(Object obj) { if (obj == null) { appendNull(); } else { append0(obj.toString()); } return this; }
/** * Appends the specified CharSequence to this buffer. * <p> * If the specified CharSequence is {@code null} the string {@code "null"} * is appended, otherwise the contents of the specified CharSequence is * appended. * * @param s * the CharSequence to append. * @return this StringBuffer. * @since 1.5 */ public synchronized StringBuffer append(CharSequence s) { if (s == null) { appendNull(); } else { append0(s, 0, s.length()); } return this; }
/** * Adds the string representation of the specified object to the end of this * StringBuffer. * <p> * If the specified object is {@code null} the string {@code "null"} is * appended, otherwise the objects {@code toString} is used to get its * string representation. * * @param obj * the object to append (may be null). * @return this StringBuffer. * @see String#valueOf(Object) */ public synchronized StringBuffer append(Object obj) { if (obj == null) { appendNull(); } else { append0(obj.toString()); } return this; }
/** * Adds the string representation of the specified object to the end of this * StringBuffer. * <p> * If the specified object is {@code null} the string {@code "null"} is * appended, otherwise the objects {@code toString} is used to get its * string representation. * * @param obj * the object to append (may be null). * @return this StringBuffer. * @see String#valueOf(Object) */ public synchronized StringBuffer append(Object obj) { if (obj == null) { appendNull(); } else { append0(obj.toString()); } return this; }
/** * Adds the string representation of the specified object to the end of this * StringBuffer. * <p> * If the specified object is {@code null} the string {@code "null"} is * appended, otherwise the objects {@code toString} is used to get its * string representation. * * @param obj * the object to append (may be null). * @return this StringBuffer. * @see String#valueOf(Object) */ public synchronized StringBuffer append(Object obj) { if (obj == null) { appendNull(); } else { append0(obj.toString()); } return this; }
/** * Adds the string representation of the specified object to the end of this * StringBuffer. * <p> * If the specified object is {@code null} the string {@code "null"} is * appended, otherwise the objects {@code toString} is used to get its * string representation. * * @param obj * the object to append (may be null). * @return this StringBuffer. * @see String#valueOf(Object) */ public synchronized StringBuffer append(Object obj) { if (obj == null) { appendNull(); } else { append0(obj.toString()); } return this; }
/** * Adds the string representation of the specified object to the end of this * StringBuffer. * <p> * If the specified object is {@code null} the string {@code "null"} is * appended, otherwise the objects {@code toString} is used to get its * string representation. * * @param obj * the object to append (may be null). * @return this StringBuffer. * @see String#valueOf(Object) */ public synchronized StringBuffer append(Object obj) { if (obj == null) { appendNull(); } else { append0(obj.toString()); } return this; }
/** * Adds the specified StringBuffer to the end of this buffer. * <p> * If the specified StringBuffer is {@code null} the string {@code "null"} * is appended, otherwise the contents of the specified StringBuffer is * appended. * * @param sb * the StringBuffer to append (may be null). * @return this StringBuffer. * * @since 1.4 */ public synchronized StringBuffer append(StringBuffer sb) { if (sb == null) { appendNull(); } else { synchronized (sb) { append0(sb.getValue(), 0, sb.length()); } } return this; }
/** * Adds the specified StringBuffer to the end of this buffer. * <p> * If the specified StringBuffer is {@code null} the string {@code "null"} * is appended, otherwise the contents of the specified StringBuffer is * appended. * * @param sb * the StringBuffer to append (may be null). * @return this StringBuffer. * * @since 1.4 */ public synchronized StringBuffer append(StringBuffer sb) { if (sb == null) { appendNull(); } else { synchronized (sb) { append0(sb.getValue(), 0, sb.length()); } } return this; }
/** * Adds the specified StringBuffer to the end of this buffer. * <p> * If the specified StringBuffer is {@code null} the string {@code "null"} * is appended, otherwise the contents of the specified StringBuffer is * appended. * * @param sb * the StringBuffer to append (may be null). * @return this StringBuffer. * * @since 1.4 */ public synchronized StringBuffer append(StringBuffer sb) { if (sb == null) { appendNull(); } else { synchronized (sb) { append0(sb.getValue(), 0, sb.length()); } } return this; }
/** * Adds the specified StringBuffer to the end of this buffer. * <p> * If the specified StringBuffer is {@code null} the string {@code "null"} * is appended, otherwise the contents of the specified StringBuffer is * appended. * * @param sb * the StringBuffer to append (may be null). * @return this StringBuffer. * * @since 1.4 */ public synchronized StringBuffer append(StringBuffer sb) { if (sb == null) { appendNull(); } else { synchronized (sb) { append0(sb.getValue(), 0, sb.length()); } } return this; }
/** * Adds the specified StringBuffer to the end of this buffer. * <p> * If the specified StringBuffer is {@code null} the string {@code "null"} * is appended, otherwise the contents of the specified StringBuffer is * appended. * * @param sb * the StringBuffer to append (may be null). * @return this StringBuffer. * * @since 1.4 */ public synchronized StringBuffer append(StringBuffer sb) { if (sb == null) { appendNull(); } else { synchronized (sb) { append0(sb.getValue(), 0, sb.length()); } } return this; }