MCPcopy Create free account
hub / github.com/ReadyTalk/avian / append

Method append

classpath/java/lang/StringBuilder.java:39–55  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

37 }
38
39 public StringBuilder append(String s) {
40 if (s == null) {
41 return append("null");
42 } else {
43 if (s.length() > 0) {
44 if (buffer != null && s.length() <= buffer.length - position) {
45 s.getChars(0, s.length(), buffer, position);
46 position += s.length();
47 } else {
48 flush();
49 chain = new Cell(s, chain);
50 }
51 length += s.length();
52 }
53 return this;
54 }
55 }
56
57 public StringBuilder append(StringBuffer sb) {
58 return append(sb.toString());

Callers 15

toStringMethod · 0.95
toStringMethod · 0.95
toStringMethod · 0.95
readStringTokenMethod · 0.95
toStringMethod · 0.95
replaceMethod · 0.95
infuseMethod · 0.95
toStringMethod · 0.95
StringBuilderMethod · 0.95
insertMethod · 0.95
parseTypeMethod · 0.95

Calls 6

flushMethod · 0.95
valueOfMethod · 0.95
lengthMethod · 0.65
toStringMethod · 0.65
subSequenceMethod · 0.65
getCharsMethod · 0.45

Tested by

no test coverage detected