mirror of
https://github.com/corda/corda.git
synced 2025-06-14 05:08:18 +00:00
added StringBuffer/Builder methods
This commit is contained in:
@ -74,7 +74,15 @@ public class StringBuffer implements CharSequence {
|
||||
sb.append(b, 0, b.length);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public synchronized int indexOf(String s) {
|
||||
return sb.indexOf(s);
|
||||
}
|
||||
|
||||
public synchronized int indexOf(String s, int fromIndex) {
|
||||
return sb.indexOf(s, fromIndex);
|
||||
}
|
||||
|
||||
public synchronized StringBuffer insert(int i, String s) {
|
||||
sb.insert(i, s);
|
||||
return this;
|
||||
@ -112,6 +120,10 @@ public class StringBuffer implements CharSequence {
|
||||
sb.setLength(v);
|
||||
}
|
||||
|
||||
public synchronized void setCharAt(int index, char ch) {
|
||||
sb.setCharAt(index, ch);
|
||||
}
|
||||
|
||||
public synchronized void getChars(int srcOffset, int srcLength, char[] dst,
|
||||
int dstOffset)
|
||||
{
|
||||
|
Reference in New Issue
Block a user