java.lang.StringBuilder.replace0()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(154)

本文整理了Java中java.lang.StringBuilder.replace0()方法的一些代码示例,展示了StringBuilder.replace0()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。StringBuilder.replace0()方法的具体详情如下:
包路径:java.lang.StringBuilder
类名称:StringBuilder
方法名:replace0

StringBuilder.replace0介绍

暂无

代码示例

代码示例来源:origin: robovm/robovm

/**
 * 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;
}

代码示例来源:origin: MobiVM/robovm

/**
 * 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;
}

代码示例来源:origin: ibinti/bugvm

/**
 * 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;
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * 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;
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * 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;
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * 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;
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * 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;
}

相关文章