MCPcopy Create free account
hub / github.com/antlr/codebuff / toStringHelper

Method toStringHelper

output/java_guava/1.4.16/MoreObjects.java:103–105  ·  view source on GitHub ↗

Creates an instance of ToStringHelper. This is helpful for implementing Object#toString(). Specification by example: // Returns "ClassName{" MoreObjects.toStringHelper(this) .toString(); // Returns "ClassName{x=1}" MoreObjects.toStringHelper(this)

(Object self)

Source from the content-addressed store, hash-verified

101
102
103 public static ToStringHelper toStringHelper(Object self) {
104 return new ToStringHelper(self.getClass().getSimpleName());
105 }
106
107 /**
108 * Creates an instance of {@link ToStringHelper} in the same manner as

Callers 10

toStringMethod · 0.95
toStringMethod · 0.95
toStringMethod · 0.95
toStringMethod · 0.95
toStringMethod · 0.95
toStringMethod · 0.95
toStringMethod · 0.95
toStringMethod · 0.95
toStringMethod · 0.95
toStringMethod · 0.95

Calls 1

getSimpleNameMethod · 0.45

Tested by

no test coverage detected