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

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

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

StringBuffer.replace0介绍

暂无

代码示例

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

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

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

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

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

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

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

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

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

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

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

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

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

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

相关文章