本文整理了Java中java.lang.StringBuffer.insert0()
方法的一些代码示例,展示了StringBuffer.insert0()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。StringBuffer.insert0()
方法的具体详情如下:
包路径:java.lang.StringBuffer
类名称:StringBuffer
方法名:insert0
暂无
代码示例来源:origin: robovm/robovm
/**
* Inserts the character into this buffer at the specified offset.
*
* @param index
* the index at which to insert.
* @param ch
* the character to insert.
* @return this buffer.
* @throws ArrayIndexOutOfBoundsException
* if {@code index < 0} or {@code index > length()}.
*/
public synchronized StringBuffer insert(int index, char ch) {
insert0(index, ch);
return this;
}
代码示例来源:origin: robovm/robovm
/**
* Inserts the character array into this buffer at the specified offset.
*
* @param index
* the index at which to insert.
* @param chars
* the character array to insert.
* @return this buffer.
* @throws StringIndexOutOfBoundsException
* if {@code index < 0} or {@code index > length()}.
* @throws NullPointerException
* if {@code chars} is {@code null}.
*/
public synchronized StringBuffer insert(int index, char[] chars) {
insert0(index, chars);
return this;
}
代码示例来源:origin: robovm/robovm
/**
* Inserts the string into this buffer at the specified offset.
* <p>
* If the specified string is {@code null}, the string {@code "null"} is
* inserted, otherwise the contents of the string is inserted.
*
* @param index
* the index at which to insert.
* @param string
* the string to insert (may be null).
* @return this buffer.
* @throws StringIndexOutOfBoundsException
* if {@code index < 0} or {@code index > length()}.
*/
public synchronized StringBuffer insert(int index, String string) {
insert0(index, string);
return this;
}
代码示例来源:origin: robovm/robovm
/**
* Inserts the specified subsequence of characters into this buffer at the
* specified index.
*
* @param index
* the index at which to insert.
* @param chars
* the character array to insert.
* @param start
* the starting offset.
* @param length
* the number of characters.
* @return this buffer.
* @throws NullPointerException
* if {@code chars} is {@code null}.
* @throws StringIndexOutOfBoundsException
* if {@code length < 0}, {@code start < 0}, {@code start +
* length > chars.length}, {@code index < 0} or {@code index >
* length()}
*/
public synchronized StringBuffer insert(int index, char[] chars, int start, int length) {
insert0(index, chars, start, length);
return this;
}
代码示例来源:origin: robovm/robovm
/**
* Inserts the specified subsequence into this buffer at the specified
* index.
* <p>
* If the specified CharSequence is {@code null}, the string {@code "null"}
* is inserted, otherwise the contents of the CharSequence.
*
* @param index
* The index at which to insert.
* @param s
* The char sequence to insert.
* @param start
* The inclusive start index in the char sequence.
* @param end
* The exclusive end index in the char sequence.
* @return this buffer.
* @throws IndexOutOfBoundsException
* if {@code index} is negative or greater than the current
* length, {@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}.
* @since 1.5
*/
public synchronized StringBuffer insert(int index, CharSequence s,
int start, int end) {
insert0(index, s, start, end);
return this;
}
代码示例来源:origin: robovm/robovm
/**
* Inserts the specified CharSequence into this buffer at the specified
* index.
* <p>
* If the specified CharSequence is {@code null}, the string {@code "null"}
* is inserted, otherwise the contents of the CharSequence.
*
* @param index
* The index at which to insert.
* @param s
* The char sequence to insert.
* @return this buffer.
* @throws IndexOutOfBoundsException
* if {@code index < 0} or {@code index > length()}.
* @since 1.5
*/
public synchronized StringBuffer insert(int index, CharSequence s) {
insert0(index, s == null ? "null" : s.toString());
return this;
}
代码示例来源:origin: ibinti/bugvm
/**
* Inserts the character into this buffer at the specified offset.
*
* @param index
* the index at which to insert.
* @param ch
* the character to insert.
* @return this buffer.
* @throws ArrayIndexOutOfBoundsException
* if {@code index < 0} or {@code index > length()}.
*/
public synchronized StringBuffer insert(int index, char ch) {
insert0(index, ch);
return this;
}
代码示例来源:origin: FlexoVM/flexovm
/**
* Inserts the character into this buffer at the specified offset.
*
* @param index
* the index at which to insert.
* @param ch
* the character to insert.
* @return this buffer.
* @throws ArrayIndexOutOfBoundsException
* if {@code index < 0} or {@code index > length()}.
*/
public synchronized StringBuffer insert(int index, char ch) {
insert0(index, ch);
return this;
}
代码示例来源:origin: MobiVM/robovm
/**
* Inserts the character into this buffer at the specified offset.
*
* @param index
* the index at which to insert.
* @param ch
* the character to insert.
* @return this buffer.
* @throws ArrayIndexOutOfBoundsException
* if {@code index < 0} or {@code index > length()}.
*/
public synchronized StringBuffer insert(int index, char ch) {
insert0(index, ch);
return this;
}
代码示例来源:origin: ibinti/bugvm
/**
* Inserts the string into this buffer at the specified offset.
* <p>
* If the specified string is {@code null}, the string {@code "null"} is
* inserted, otherwise the contents of the string is inserted.
*
* @param index
* the index at which to insert.
* @param string
* the string to insert (may be null).
* @return this buffer.
* @throws StringIndexOutOfBoundsException
* if {@code index < 0} or {@code index > length()}.
*/
public synchronized StringBuffer insert(int index, String string) {
insert0(index, string);
return this;
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Inserts the character into this buffer at the specified offset.
*
* @param index
* the index at which to insert.
* @param ch
* the character to insert.
* @return this buffer.
* @throws ArrayIndexOutOfBoundsException
* if {@code index < 0} or {@code index > length()}.
*/
public synchronized StringBuffer insert(int index, char ch) {
insert0(index, ch);
return this;
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Inserts the character into this buffer at the specified offset.
*
* @param index
* the index at which to insert.
* @param ch
* the character to insert.
* @return this buffer.
* @throws ArrayIndexOutOfBoundsException
* if {@code index < 0} or {@code index > length()}.
*/
public synchronized StringBuffer insert(int index, char ch) {
insert0(index, ch);
return this;
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* Inserts the character into this buffer at the specified offset.
*
* @param index
* the index at which to insert.
* @param ch
* the character to insert.
* @return this buffer.
* @throws ArrayIndexOutOfBoundsException
* if {@code index < 0} or {@code index > length()}.
*/
public synchronized StringBuffer insert(int index, char ch) {
insert0(index, ch);
return this;
}
代码示例来源:origin: ibinti/bugvm
/**
* Inserts the character array into this buffer at the specified offset.
*
* @param index
* the index at which to insert.
* @param chars
* the character array to insert.
* @return this buffer.
* @throws StringIndexOutOfBoundsException
* if {@code index < 0} or {@code index > length()}.
* @throws NullPointerException
* if {@code chars} is {@code null}.
*/
public synchronized StringBuffer insert(int index, char[] chars) {
insert0(index, chars);
return this;
}
代码示例来源:origin: MobiVM/robovm
/**
* Inserts the character array into this buffer at the specified offset.
*
* @param index
* the index at which to insert.
* @param chars
* the character array to insert.
* @return this buffer.
* @throws StringIndexOutOfBoundsException
* if {@code index < 0} or {@code index > length()}.
* @throws NullPointerException
* if {@code chars} is {@code null}.
*/
public synchronized StringBuffer insert(int index, char[] chars) {
insert0(index, chars);
return this;
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Inserts the string into this buffer at the specified offset.
* <p>
* If the specified string is {@code null}, the string {@code "null"} is
* inserted, otherwise the contents of the string is inserted.
*
* @param index
* the index at which to insert.
* @param string
* the string to insert (may be null).
* @return this buffer.
* @throws StringIndexOutOfBoundsException
* if {@code index < 0} or {@code index > length()}.
*/
public synchronized StringBuffer insert(int index, String string) {
insert0(index, string);
return this;
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Inserts the string into this buffer at the specified offset.
* <p>
* If the specified string is {@code null}, the string {@code "null"} is
* inserted, otherwise the contents of the string is inserted.
*
* @param index
* the index at which to insert.
* @param string
* the string to insert (may be null).
* @return this buffer.
* @throws StringIndexOutOfBoundsException
* if {@code index < 0} or {@code index > length()}.
*/
public synchronized StringBuffer insert(int index, String string) {
insert0(index, string);
return this;
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Inserts the character array into this buffer at the specified offset.
*
* @param index
* the index at which to insert.
* @param chars
* the character array to insert.
* @return this buffer.
* @throws StringIndexOutOfBoundsException
* if {@code index < 0} or {@code index > length()}.
* @throws NullPointerException
* if {@code chars} is {@code null}.
*/
public synchronized StringBuffer insert(int index, char[] chars) {
insert0(index, chars);
return this;
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Inserts the character array into this buffer at the specified offset.
*
* @param index
* the index at which to insert.
* @param chars
* the character array to insert.
* @return this buffer.
* @throws StringIndexOutOfBoundsException
* if {@code index < 0} or {@code index > length()}.
* @throws NullPointerException
* if {@code chars} is {@code null}.
*/
public synchronized StringBuffer insert(int index, char[] chars) {
insert0(index, chars);
return this;
}
代码示例来源:origin: MobiVM/robovm
/**
* Inserts the string into this buffer at the specified offset.
* <p>
* If the specified string is {@code null}, the string {@code "null"} is
* inserted, otherwise the contents of the string is inserted.
*
* @param index
* the index at which to insert.
* @param string
* the string to insert (may be null).
* @return this buffer.
* @throws StringIndexOutOfBoundsException
* if {@code index < 0} or {@code index > length()}.
*/
public synchronized StringBuffer insert(int index, String string) {
insert0(index, string);
return this;
}
内容来源于网络,如有侵权,请联系作者删除!