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