/** * 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(clazz.getSimpleName()); }
return new ToStringHelper(self.getClass().getSimpleName());
/** * 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(clazz.getSimpleName()); }
return new ToStringHelper(self.getClass().getSimpleName());
return new ToStringHelper(self.getClass().getSimpleName());
return new ToStringHelper(self.getClass().getSimpleName());
/** * 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()}). */ @CheckReturnValue public static ToStringHelper toStringHelper(Class<?> clazz) { return new ToStringHelper(clazz.getSimpleName()); }
/** * 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(clazz.getSimpleName()); }
/** * 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(clazz.getSimpleName()); }
/** * Creates an instance of {@link ToStringHelper} in the same manner as {@link * #toStringHelper(Object)}, but using {@code className} instead of using an instance's {@link * Object#getClass()}. * * @param className the name of the instance type * @since 18.0 (since 7.0 as {@code Objects.toStringHelper()}). */ public static ToStringHelper toStringHelper(String className) { return new ToStringHelper(className); }
/** * Creates an instance of {@link ToStringHelper} in the same manner as {@link * #toStringHelper(Object)}, but using {@code className} instead of using an instance's {@link * Object#getClass()}. * * @param className the name of the instance type * @since 18.0 (since 7.0 as {@code Objects.toStringHelper()}). */ @CheckReturnValue public static ToStringHelper toStringHelper(String className) { return new ToStringHelper(className); }
/** * Creates an instance of {@link ToStringHelper} in the same manner as {@link * #toStringHelper(Object)}, but using {@code className} instead of using an instance's {@link * Object#getClass()}. * * @param className the name of the instance type * @since 18.0 (since 7.0 as {@code Objects.toStringHelper()}). */ public static ToStringHelper toStringHelper(String className) { return new ToStringHelper(className); }
return new ToStringHelper(self.getClass().getSimpleName());
return new ToStringHelper(self.getClass().getSimpleName());
/** * 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(clazz.getSimpleName()); }
/** * Creates an instance of {@link ToStringHelper} in the same manner as {@link * #toStringHelper(Object)}, but using {@code className} instead of using an instance's {@link * Object#getClass()}. * * @param className the name of the instance type * @since 18.0 (since 7.0 as {@code Objects.toStringHelper()}). */ public static ToStringHelper toStringHelper(String className) { return new ToStringHelper(className); }
/** * Creates an instance of {@link ToStringHelper} in the same manner as {@link * #toStringHelper(Object)}, but using {@code className} instead of using an instance's {@link * Object#getClass()}. * * @param className the name of the instance type * @since 18.0 (since 7.0 as {@code Objects.toStringHelper()}). */ public static ToStringHelper toStringHelper(String className) { return new ToStringHelper(className); }
/** * Creates an instance of {@link ToStringHelper} in the same manner as {@link * #toStringHelper(Object)}, but using {@code className} instead of using an instance's {@link * Object#getClass()}. * * @param className the name of the instance type * @since 18.0 (since 7.0 as {@code Objects.toStringHelper()}). */ public static ToStringHelper toStringHelper(String className) { return new ToStringHelper(className); }