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

Method toStringHelper

corpus/java/training/guava/base/MoreObjects.java:101–103  ·  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

99 * @since 18.0 (since 2.0 as {@code Objects.toStringHelper()}).
100 */
101 public static ToStringHelper toStringHelper(Object self) {
102 return new ToStringHelper(self.getClass().getSimpleName());
103 }
104
105 /**
106 * 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