MCPcopy Create free account
hub / github.com/apache/thrift / toString

Method toString

lib/java/src/main/java/org/apache/thrift/TUnion.java:195–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

193 protected abstract F enumForId(short id);
194
195 @Override
196 public String toString() {
197 StringBuilder sb = new StringBuilder();
198 sb.append("<");
199 sb.append(this.getClass().getSimpleName());
200 sb.append(" ");
201
202 if (getSetField() != null) {
203 Object v = getFieldValue();
204 sb.append(getFieldDesc(getSetField()).name);
205 sb.append(":");
206 if (v instanceof ByteBuffer) {
207 TBaseHelper.toString((ByteBuffer) v, sb);
208 } else {
209 sb.append(v.toString());
210 }
211 }
212 sb.append(">");
213 return sb.toString();
214 }
215
216 public final void clear() {
217 this.setField_ = null;

Callers 15

build.gradle.ktsFile · 0.45
build.gradle.ktsFile · 0.45
runMethod · 0.45
printMapMethod · 0.45
nestedMapTestFunction · 0.45
build.gradle.ktsFile · 0.45
thrift.jsFile · 0.45
mainMethod · 0.45
mainMethod · 0.45
int64_util.jsFile · 0.45
json_protocol.jsFile · 0.45

Calls 5

getSetFieldMethod · 0.95
getFieldValueMethod · 0.95
getFieldDescMethod · 0.95
toStringMethod · 0.95
appendMethod · 0.45

Tested by 5

runMethod · 0.36
printMapMethod · 0.36
nestedMapTestFunction · 0.36
mainMethod · 0.36
mainMethod · 0.36