@Override
 @HotSpotIntrinsicCandidate
 public synchronized StringBuffer append(int i) {
   toStringCache = null;
   super.append(i);
   return this;
 }
Ejemplo n.º 2
0
 /**
  * @throws IndexOutOfBoundsException {@inheritDoc}
  * @since 1.5
  */
 public synchronized StringBuffer append(CharSequence s, int start, int end) {
   super.append(s, start, end);
   return this;
 }
Ejemplo n.º 3
0
 /**
  * Appends the specified <tt>StringBuffer</tt> to this sequence.
  *
  * <p>The characters of the <tt>StringBuffer</tt> argument are appended, in order, to the contents
  * of this <tt>StringBuffer</tt>, increasing the length of this <tt>StringBuffer</tt> by the
  * length of the argument. If <tt>sb</tt> is <tt>null</tt>, then the four characters
  * <tt>"null"</tt> are appended to this <tt>StringBuffer</tt>.
  *
  * <p>Let <i>n</i> be the length of the old character sequence, the one contained in the
  * <tt>StringBuffer</tt> just prior to execution of the <tt>append</tt> method. Then the character
  * at index <i>k</i> in the new character sequence is equal to the character at index <i>k</i> in
  * the old character sequence, if <i>k</i> is less than <i>n</i>; otherwise, it is equal to the
  * character at index <i>k-n</i> in the argument <code>sb</code>.
  *
  * <p>This method synchronizes on <code>this</code> (the destination) object but does not
  * synchronize on the source (<code>sb</code>).
  *
  * @param sb the <tt>StringBuffer</tt> to append.
  * @return a reference to this object.
  * @since 1.4
  */
 public synchronized StringBuffer append(StringBuffer sb) {
   super.append(sb);
   return this;
 }
Ejemplo n.º 4
0
 /**
  * @see java.lang.String#valueOf(java.lang.Object)
  * @see #append(java.lang.String)
  */
 public synchronized StringBuffer append(Object obj) {
   super.append(String.valueOf(obj));
   return this;
 }
 /**
  * Appends the specified {@code StringBuffer} to this sequence.
  *
  * <p>The characters of the {@code StringBuffer} argument are appended, in order, to the contents
  * of this {@code StringBuffer}, increasing the length of this {@code StringBuffer} by the length
  * of the argument. If {@code sb} is {@code null}, then the four characters {@code "null"} are
  * appended to this {@code StringBuffer}.
  *
  * <p>Let <i>n</i> be the length of the old character sequence, the one contained in the {@code
  * StringBuffer} just prior to execution of the {@code append} method. Then the character at index
  * <i>k</i> in the new character sequence is equal to the character at index <i>k</i> in the old
  * character sequence, if <i>k</i> is less than <i>n</i>; otherwise, it is equal to the character
  * at index <i>k-n</i> in the argument {@code sb}.
  *
  * <p>This method synchronizes on {@code this}, the destination object, but does not synchronize
  * on the source ({@code sb}).
  *
  * @param sb the {@code StringBuffer} to append.
  * @return a reference to this object.
  * @since 1.4
  */
 public synchronized StringBuffer append(StringBuffer sb) {
   toStringCache = null;
   super.append(sb);
   return this;
 }
Ejemplo n.º 6
0
 /**
  * @see java.lang.String#valueOf(float)
  * @see #append(java.lang.String)
  */
 public synchronized StringBuffer append(float f) {
   super.append(f);
   return this;
 }
Ejemplo n.º 7
0
 /**
  * @see java.lang.String#valueOf(int)
  * @see #append(java.lang.String)
  */
 public synchronized StringBuffer append(int i) {
   super.append(i);
   return this;
 }
Ejemplo n.º 8
0
 /**
  * @see java.lang.String#valueOf(boolean)
  * @see #append(java.lang.String)
  */
 public synchronized StringBuffer append(boolean b) {
   super.append(b);
   return this;
 }
 @Override
 public synchronized StringBuffer append(boolean b) {
   toStringCache = null;
   super.append(b);
   return this;
 }
 /** @throws IndexOutOfBoundsException {@inheritDoc} */
 @Override
 public synchronized StringBuffer append(char[] str, int offset, int len) {
   toStringCache = null;
   super.append(str, offset, len);
   return this;
 }
 @Override
 public synchronized StringBuffer append(char[] str) {
   toStringCache = null;
   super.append(str);
   return this;
 }
 /**
  * @throws IndexOutOfBoundsException {@inheritDoc}
  * @since 1.5
  */
 @Override
 public synchronized StringBuffer append(CharSequence s, int start, int end) {
   toStringCache = null;
   super.append(s, start, end);
   return this;
 }
 /**
  * Appends the specified {@code CharSequence} to this sequence.
  *
  * <p>The characters of the {@code CharSequence} argument are appended, in order, increasing the
  * length of this sequence by the length of the argument.
  *
  * <p>The result of this method is exactly the same as if it were an invocation of this.append(s,
  * 0, s.length());
  *
  * <p>This method synchronizes on {@code this}, the destination object, but does not synchronize
  * on the source ({@code s}).
  *
  * <p>If {@code s} is {@code null}, then the four characters {@code "null"} are appended.
  *
  * @param s the {@code CharSequence} to append.
  * @return a reference to this object.
  * @since 1.5
  */
 @Override
 public synchronized StringBuffer append(CharSequence s) {
   toStringCache = null;
   super.append(s);
   return this;
 }
 /** @since 1.8 */
 @Override
 synchronized StringBuffer append(AbstractStringBuilder asb) {
   toStringCache = null;
   super.append(asb);
   return this;
 }
Ejemplo n.º 15
0
 public synchronized StringBuffer append(char str[]) {
   super.append(str);
   return this;
 }
Ejemplo n.º 16
0
 public synchronized StringBuffer append(char str[], int offset, int len) {
   super.append(str, offset, len);
   return this;
 }
 @Override
 public synchronized StringBuffer append(long lng) {
   toStringCache = null;
   super.append(lng);
   return this;
 }
Ejemplo n.º 18
0
 public synchronized StringBuffer append(char c) {
   super.append(c);
   return this;
 }
 @Override
 public synchronized StringBuffer append(float f) {
   toStringCache = null;
   super.append(f);
   return this;
 }
Ejemplo n.º 20
0
 /**
  * @see java.lang.String#valueOf(long)
  * @see #append(java.lang.String)
  */
 public synchronized StringBuffer append(long lng) {
   super.append(lng);
   return this;
 }
 @Override
 public synchronized StringBuffer append(double d) {
   toStringCache = null;
   super.append(d);
   return this;
 }
Ejemplo n.º 22
0
 /**
  * @see java.lang.String#valueOf(double)
  * @see #append(java.lang.String)
  */
 public synchronized StringBuffer append(double d) {
   super.append(d);
   return this;
 }
 @Override
 public synchronized StringBuffer append(Object obj) {
   toStringCache = null;
   super.append(String.valueOf(obj));
   return this;
 }