/** * Creates an instance of {@link ToStringHelper} in the same manner as {@link * #toStringHelper(Object)}, but using the simple name of {@code clazz} instead of using an * instance's {@link Object#getClass()}. * * <p>Note that in GWT, class names are often obfuscated. * * @param clazz the {@link Class} of the instance * @since 18.0 (since 7.0 as {@code Objects.toStringHelper()}. */ public static ToStringHelper toStringHelper(Class<?> clazz) { return new ToStringHelper(simpleName(clazz)); }
/** * Creates an instance of {@link ToStringHelper} in the same manner as {@link * #toStringHelper(Object)}, but using the simple name of {@code clazz} instead of using an * instance's {@link Object#getClass()}. * * <p>Note that in GWT, class names are often obfuscated. * * @param clazz the {@link Class} of the instance * @since 18.0 (since 7.0 as {@code Objects.toStringHelper()}. */ public static ToStringHelper toStringHelper(Class<?> clazz) { return new ToStringHelper(simpleName(clazz)); }
/** * Creates an instance of {@link ToStringHelper} in the same manner as {@link * #toStringHelper(Object)}, but using the simple name of {@code clazz} instead of using an * instance's {@link Object#getClass()}. * * <p>Note that in GWT, class names are often obfuscated. * * @param clazz the {@link Class} of the instance * @since 18.0 (since 7.0 as {@code Objects.toStringHelper()}. */ public static ToStringHelper toStringHelper(Class<?> clazz) { return new ToStringHelper(simpleName(clazz)); }
/** * Creates an instance of {@link ToStringHelper} in the same manner as {@link * #toStringHelper(Object)}, but using the simple name of {@code clazz} instead of using an * instance's {@link Object#getClass()}. * * <p>Note that in GWT, class names are often obfuscated. * * @param clazz the {@link Class} of the instance * @since 18.0 (since 7.0 as {@code Objects.toStringHelper()}. */ public static ToStringHelper toStringHelper(Class<?> clazz) { return new ToStringHelper(simpleName(clazz)); }
/** * Creates an instance of {@link ToStringHelper} in the same manner as * {@link Objects#toStringHelper(Object)}, but using {@code className} instead * of using an instance's {@link Object#getClass()}. * * @param className the name of the instance type * @since 7.0 (source-compatible since 2.0) * @deprecated Use {@link MoreObjects#toStringHelper(String)} instead. This * method is scheduled for removal in June 2016. */ @Deprecated public static ToStringHelper toStringHelper(String className) { return new ToStringHelper(className); }
/** * Creates an instance of {@link ToStringHelper} in the same manner as * {@link Objects#toStringHelper(Object)}, but using {@code className} instead * of using an instance's {@link Object#getClass()}. * * @param className the name of the instance type * @since 7.0 (source-compatible since 2.0) * @deprecated Use {@link MoreObjects#toStringHelper(String)} instead. This * method is scheduled for removal in June 2016. */ @Deprecated public static ToStringHelper toStringHelper(String className) { return new ToStringHelper(className); }
/** * Creates an instance of {@link ToStringHelper} in the same manner as * {@link Objects#toStringHelper(Object)}, but using {@code className} instead * of using an instance's {@link Object#getClass()}. * * @param className the name of the instance type * @since 7.0 (source-compatible since 2.0) * @deprecated Use {@link MoreObjects#toStringHelper(String)} instead. This * method is scheduled for removal in June 2016. */ @Deprecated public static ToStringHelper toStringHelper(String className) { return new ToStringHelper(className); }
/** * Creates an instance of {@link ToStringHelper} in the same manner as * {@link Objects#toStringHelper(Object)}, but using {@code className} instead * of using an instance's {@link Object#getClass()}. * * @param className the name of the instance type * @since 7.0 (source-compatible since 2.0) * @deprecated Use {@link MoreObjects#toStringHelper(String)} instead. This * method is scheduled for removal in June 2016. */ @Deprecated public static ToStringHelper toStringHelper(String className) { return new ToStringHelper(className); }
return new ToStringHelper(simpleName(self.getClass()));
return new ToStringHelper(simpleName(self.getClass()));
return new ToStringHelper(simpleName(self.getClass()));
return new ToStringHelper(simpleName(self.getClass()));