add a couple of StringBuffer.append overloads

This commit is contained in:
Joel Dice
2009-08-20 08:59:22 -06:00
parent 6196f61938
commit 71f1efc4cb
2 changed files with 14 additions and 1 deletions

View File

@ -30,6 +30,16 @@ public class StringBuffer implements CharSequence {
return this;
}
public synchronized StringBuffer append(CharSequence s) {
sb.append(s);
return this;
}
public synchronized StringBuffer append(StringBuffer s) {
sb.append(s);
return this;
}
public synchronized StringBuffer append(Object o) {
sb.append(o);
return this;