/** * Replaces the characters in the specified range with the contents of the * specified string. * * @param start * the inclusive begin index. * @param end * the exclusive end index. * @param string * the string that will replace the contents in the range. * @return this buffer. * @throws StringIndexOutOfBoundsException * if {@code start} or {@code end} are negative, {@code start} * is greater than {@code end} or {@code end} is greater than * the length of {@code s}. */ public synchronized StringBuffer replace(int start, int end, String string) { replace0(start, end, string); return this; }
/** * Replaces the characters in the specified range with the contents of the * specified string. * * @param start * the inclusive begin index. * @param end * the exclusive end index. * @param string * the string that will replace the contents in the range. * @return this buffer. * @throws StringIndexOutOfBoundsException * if {@code start} or {@code end} are negative, {@code start} * is greater than {@code end} or {@code end} is greater than * the length of {@code s}. */ public synchronized StringBuffer replace(int start, int end, String string) { replace0(start, end, string); return this; }
/** * Replaces the characters in the specified range with the contents of the * specified string. * * @param start * the inclusive begin index. * @param end * the exclusive end index. * @param string * the string that will replace the contents in the range. * @return this buffer. * @throws StringIndexOutOfBoundsException * if {@code start} or {@code end} are negative, {@code start} * is greater than {@code end} or {@code end} is greater than * the length of {@code s}. */ public synchronized StringBuffer replace(int start, int end, String string) { replace0(start, end, string); return this; }
/** * Replaces the characters in the specified range with the contents of the * specified string. * * @param start * the inclusive begin index. * @param end * the exclusive end index. * @param string * the string that will replace the contents in the range. * @return this buffer. * @throws StringIndexOutOfBoundsException * if {@code start} or {@code end} are negative, {@code start} * is greater than {@code end} or {@code end} is greater than * the length of {@code s}. */ public synchronized StringBuffer replace(int start, int end, String string) { replace0(start, end, string); return this; }
/** * Replaces the characters in the specified range with the contents of the * specified string. * * @param start * the inclusive begin index. * @param end * the exclusive end index. * @param string * the string that will replace the contents in the range. * @return this buffer. * @throws StringIndexOutOfBoundsException * if {@code start} or {@code end} are negative, {@code start} * is greater than {@code end} or {@code end} is greater than * the length of {@code s}. */ public synchronized StringBuffer replace(int start, int end, String string) { replace0(start, end, string); return this; }
/** * Replaces the characters in the specified range with the contents of the * specified string. * * @param start * the inclusive begin index. * @param end * the exclusive end index. * @param string * the string that will replace the contents in the range. * @return this buffer. * @throws StringIndexOutOfBoundsException * if {@code start} or {@code end} are negative, {@code start} * is greater than {@code end} or {@code end} is greater than * the length of {@code s}. */ public synchronized StringBuffer replace(int start, int end, String string) { replace0(start, end, string); return this; }
/** * Replaces the characters in the specified range with the contents of the * specified string. * * @param start * the inclusive begin index. * @param end * the exclusive end index. * @param string * the string that will replace the contents in the range. * @return this buffer. * @throws StringIndexOutOfBoundsException * if {@code start} or {@code end} are negative, {@code start} * is greater than {@code end} or {@code end} is greater than * the length of {@code s}. */ public synchronized StringBuffer replace(int start, int end, String string) { replace0(start, end, string); return this; }