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)
| 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 |