mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
Implements String.delete(char oldChar, String newChar), StringBuffer and
StringBuilder delete(int startIndex, int endIndex), and replace (int startIndex, int endIndex, String replacementString)
This commit is contained in:
@ -60,6 +60,11 @@ public class StringBuffer {
|
||||
return this;
|
||||
}
|
||||
|
||||
public synchronized StringBuffer delete(int start, int end) {
|
||||
sb.delete(start, end);
|
||||
return this;
|
||||
}
|
||||
|
||||
public synchronized StringBuffer deleteCharAt(int i) {
|
||||
sb.deleteCharAt(i);
|
||||
return this;
|
||||
@ -73,6 +78,11 @@ public class StringBuffer {
|
||||
return sb.length();
|
||||
}
|
||||
|
||||
public synchronized StringBuffer replace(int start, int end, String str) {
|
||||
sb.replace(start, end, str);
|
||||
return this;
|
||||
}
|
||||
|
||||
public synchronized void setLength(int v) {
|
||||
sb.setLength(v);
|
||||
}
|
||||
|
Reference in New Issue
Block a user