@Override
 @HotSpotIntrinsicCandidate
 public synchronized StringBuffer append(int i) {
   toStringCache = null;
   super.append(i);
   return this;
 }
 /**
  * @throws IndexOutOfBoundsException {@inheritDoc}
  * @since 1.5
  */
 @Override
 public StringBuffer insert(int dstOffset, CharSequence s) {
   // Note, synchronization achieved via invocations of other StringBuffer methods
   // after narrowing of s to specific type
   // Ditto for toStringCache clearing
   super.insert(dstOffset, s);
   return this;
 }
 /** @throws StringIndexOutOfBoundsException {@inheritDoc} */
 @Override
 public StringBuffer insert(int offset, double d) {
   // Note, synchronization achieved via invocation of StringBuffer insert(int, String)
   // after conversion of d to String by super class method
   // Ditto for toStringCache clearing
   super.insert(offset, d);
   return this;
 }
예제 #4
0
 /**
  * @throws IndexOutOfBoundsException {@inheritDoc}
  * @see #length()
  */
 public synchronized StringBuffer insert(int offset, char c) {
   super.insert(offset, c);
   return this;
 }
예제 #5
0
 /**
  * @throws StringIndexOutOfBoundsException {@inheritDoc}
  * @see #length()
  */
 public synchronized StringBuffer insert(int offset, String str) {
   super.insert(offset, str);
   return this;
 }
예제 #6
0
 /**
  * @throws StringIndexOutOfBoundsException {@inheritDoc}
  * @since 1.2
  */
 public synchronized StringBuffer insert(int index, char str[], int offset, int len) {
   super.insert(index, str, offset, len);
   return this;
 }
예제 #7
0
 /**
  * @throws StringIndexOutOfBoundsException {@inheritDoc}
  * @since 1.2
  */
 public synchronized StringBuffer deleteCharAt(int index) {
   super.deleteCharAt(index);
   return this;
 }
예제 #8
0
 /**
  * @see java.lang.String#valueOf(double)
  * @see #append(java.lang.String)
  */
 public synchronized StringBuffer append(double d) {
   super.append(d);
   return this;
 }
예제 #9
0
 /**
  * @see java.lang.String#valueOf(long)
  * @see #append(java.lang.String)
  */
 public synchronized StringBuffer append(long lng) {
   super.append(lng);
   return this;
 }
예제 #10
0
 /**
  * @throws NullPointerException {@inheritDoc}
  * @throws IndexOutOfBoundsException {@inheritDoc}
  */
 public synchronized void getChars(int srcBegin, int srcEnd, char dst[], int dstBegin) {
   super.getChars(srcBegin, srcEnd, dst, dstBegin);
 }
예제 #11
0
 /**
  * @throws IndexOutOfBoundsException {@inheritDoc}
  * @see #length()
  */
 public synchronized void setLength(int newLength) {
   super.setLength(newLength);
 }
예제 #12
0
 /** @since 1.5 */
 public synchronized void trimToSize() {
   super.trimToSize();
 }
 /** @since 1.0.2 */
 @Override
 public synchronized StringBuffer reverse() {
   toStringCache = null;
   super.reverse();
   return this;
 }
 /** @throws IndexOutOfBoundsException {@inheritDoc} */
 @Override
 public synchronized StringBuffer insert(int offset, char c) {
   toStringCache = null;
   super.insert(offset, c);
   return this;
 }
 /**
  * @throws IndexOutOfBoundsException {@inheritDoc}
  * @since 1.5
  */
 @Override
 public synchronized StringBuffer insert(int dstOffset, CharSequence s, int start, int end) {
   toStringCache = null;
   super.insert(dstOffset, s, start, end);
   return this;
 }
예제 #16
0
 /**
  * @see java.lang.String#valueOf(int)
  * @see #append(java.lang.String)
  */
 public synchronized StringBuffer append(int i) {
   super.append(i);
   return this;
 }
예제 #17
0
 /** @since 1.5 */
 public synchronized StringBuffer appendCodePoint(int codePoint) {
   super.appendCodePoint(codePoint);
   return this;
 }
예제 #18
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;
 }
예제 #19
0
 /**
  * @see java.lang.String#valueOf(float)
  * @see #append(java.lang.String)
  */
 public synchronized StringBuffer append(float f) {
   super.append(f);
   return this;
 }
예제 #20
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;
 }
예제 #21
0
 /**
  * @throws StringIndexOutOfBoundsException {@inheritDoc}
  * @since 1.2
  */
 public synchronized StringBuffer delete(int start, int end) {
   super.delete(start, end);
   return this;
 }
예제 #22
0
 /**
  * @throws IndexOutOfBoundsException {@inheritDoc}
  * @since 1.5
  */
 public synchronized StringBuffer append(CharSequence s, int start, int end) {
   super.append(s, start, end);
   return this;
 }
예제 #23
0
 /**
  * @throws StringIndexOutOfBoundsException {@inheritDoc}
  * @since 1.2
  */
 public synchronized StringBuffer replace(int start, int end, String str) {
   super.replace(start, end, str);
   return this;
 }
예제 #24
0
 public synchronized StringBuffer append(char str[]) {
   super.append(str);
   return this;
 }
예제 #25
0
 /**
  * @throws StringIndexOutOfBoundsException {@inheritDoc}
  * @see java.lang.String#valueOf(java.lang.Object)
  * @see #insert(int, java.lang.String)
  * @see #length()
  */
 public synchronized StringBuffer insert(int offset, Object obj) {
   super.insert(offset, String.valueOf(obj));
   return this;
 }
예제 #26
0
 public synchronized StringBuffer append(char str[], int offset, int len) {
   super.append(str, offset, len);
   return this;
 }
예제 #27
0
 /**
  * @throws IndexOutOfBoundsException {@inheritDoc}
  * @since 1.5
  */
 public synchronized StringBuffer insert(int dstOffset, CharSequence s, int start, int end) {
   super.insert(dstOffset, s, start, end);
   return this;
 }
예제 #28
0
 /**
  * @see java.lang.String#valueOf(boolean)
  * @see #append(java.lang.String)
  */
 public synchronized StringBuffer append(boolean b) {
   super.append(b);
   return this;
 }
예제 #29
0
 /** @since JDK1.0.2 */
 public synchronized StringBuffer reverse() {
   super.reverse();
   return this;
 }
예제 #30
0
 public synchronized StringBuffer append(char c) {
   super.append(c);
   return this;
 }