/** * Replaces the specified subsequence in this builder with the specified * string. * * @param start * the inclusive begin index. * @param end * the exclusive end index. * @param string * the replacement string. * @return this builder. * @throws StringIndexOutOfBoundsException * if {@code start} is negative, greater than the current * {@code length()} or greater than {@code end}. * @throws NullPointerException * if {@code str} is {@code null}. */ public StringBuilder replace(int start, int end, String string) { replace0(start, end, string); return this; }
/** * Replaces the specified subsequence in this builder with the specified * string. * * @param start * the inclusive begin index. * @param end * the exclusive end index. * @param string * the replacement string. * @return this builder. * @throws StringIndexOutOfBoundsException * if {@code start} is negative, greater than the current * {@code length()} or greater than {@code end}. * @throws NullPointerException * if {@code str} is {@code null}. */ public StringBuilder replace(int start, int end, String string) { replace0(start, end, string); return this; }
/** * Replaces the specified subsequence in this builder with the specified * string. * * @param start * the inclusive begin index. * @param end * the exclusive end index. * @param string * the replacement string. * @return this builder. * @throws StringIndexOutOfBoundsException * if {@code start} is negative, greater than the current * {@code length()} or greater than {@code end}. * @throws NullPointerException * if {@code str} is {@code null}. */ public StringBuilder replace(int start, int end, String string) { replace0(start, end, string); return this; }
/** * Replaces the specified subsequence in this builder with the specified * string. * * @param start * the inclusive begin index. * @param end * the exclusive end index. * @param string * the replacement string. * @return this builder. * @throws StringIndexOutOfBoundsException * if {@code start} is negative, greater than the current * {@code length()} or greater than {@code end}. * @throws NullPointerException * if {@code str} is {@code null}. */ public StringBuilder replace(int start, int end, String string) { replace0(start, end, string); return this; }
/** * Replaces the specified subsequence in this builder with the specified * string. * * @param start * the inclusive begin index. * @param end * the exclusive end index. * @param string * the replacement string. * @return this builder. * @throws StringIndexOutOfBoundsException * if {@code start} is negative, greater than the current * {@code length()} or greater than {@code end}. * @throws NullPointerException * if {@code str} is {@code null}. */ public StringBuilder replace(int start, int end, String string) { replace0(start, end, string); return this; }
/** * Replaces the specified subsequence in this builder with the specified * string. * * @param start * the inclusive begin index. * @param end * the exclusive end index. * @param string * the replacement string. * @return this builder. * @throws StringIndexOutOfBoundsException * if {@code start} is negative, greater than the current * {@code length()} or greater than {@code end}. * @throws NullPointerException * if {@code str} is {@code null}. */ public StringBuilder replace(int start, int end, String string) { replace0(start, end, string); return this; }
/** * Replaces the specified subsequence in this builder with the specified * string. * * @param start * the inclusive begin index. * @param end * the exclusive end index. * @param string * the replacement string. * @return this builder. * @throws StringIndexOutOfBoundsException * if {@code start} is negative, greater than the current * {@code length()} or greater than {@code end}. * @throws NullPointerException * if {@code str} is {@code null}. */ public StringBuilder replace(int start, int end, String string) { replace0(start, end, string); return this; }