T firstNonNull(@Nullable T first, @Nullable T second) {
*
* @param self the object to generate the string for (typically {@code this}), used only for its
* class name
- * @since 18.0 (since 2.0 as {@code Objects.toStringHelper()}).
+ * @since 18.0 (since 2.0 as {@code Objects.toStringHelper}).
*/
public static ToStringHelper toStringHelper(Object self) {
return new ToStringHelper(self.getClass().getSimpleName());
@@ -122,7 +124,7 @@ public static ToStringHelper toStringHelper(Object self) {
* 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()}).
+ * @since 18.0 (since 7.0 as {@code Objects.toStringHelper}).
*/
public static ToStringHelper toStringHelper(Class> clazz) {
return new ToStringHelper(clazz.getSimpleName());
@@ -134,7 +136,7 @@ public static ToStringHelper toStringHelper(Class> clazz) {
* Object#getClass()}.
*
* @param className the name of the instance type
- * @since 18.0 (since 7.0 as {@code Objects.toStringHelper()}).
+ * @since 18.0 (since 7.0 as {@code Objects.toStringHelper}).
*/
public static ToStringHelper toStringHelper(String className) {
return new ToStringHelper(className);
@@ -163,7 +165,7 @@ private ToStringHelper(String className) {
* value. The order of calling this method, relative to the {@code add()}/{@code addValue()}
* methods, is not significant.
*
- * @since 18.0 (since 12.0 as {@code Objects.ToStringHelper.omitNullValues()}).
+ * @since 18.0 (since 12.0 as {@code Objects.ToStringHelper.omitNullValues}).
*/
@CanIgnoreReturnValue
public ToStringHelper omitNullValues() {
@@ -202,7 +204,7 @@ public ToStringHelper add(String name, @Nullable Object value) {
/**
* Adds a name/value pair to the formatted output in {@code name=value} format.
*
- * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.add()}).
+ * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.add}).
*/
@CanIgnoreReturnValue
public ToStringHelper add(String name, boolean value) {
@@ -212,7 +214,7 @@ public ToStringHelper add(String name, boolean value) {
/**
* Adds a name/value pair to the formatted output in {@code name=value} format.
*
- * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.add()}).
+ * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.add}).
*/
@CanIgnoreReturnValue
public ToStringHelper add(String name, char value) {
@@ -222,7 +224,7 @@ public ToStringHelper add(String name, char value) {
/**
* Adds a name/value pair to the formatted output in {@code name=value} format.
*
- * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.add()}).
+ * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.add}).
*/
@CanIgnoreReturnValue
public ToStringHelper add(String name, double value) {
@@ -232,7 +234,7 @@ public ToStringHelper add(String name, double value) {
/**
* Adds a name/value pair to the formatted output in {@code name=value} format.
*
- * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.add()}).
+ * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.add}).
*/
@CanIgnoreReturnValue
public ToStringHelper add(String name, float value) {
@@ -242,7 +244,7 @@ public ToStringHelper add(String name, float value) {
/**
* Adds a name/value pair to the formatted output in {@code name=value} format.
*
- * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.add()}).
+ * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.add}).
*/
@CanIgnoreReturnValue
public ToStringHelper add(String name, int value) {
@@ -252,7 +254,7 @@ public ToStringHelper add(String name, int value) {
/**
* Adds a name/value pair to the formatted output in {@code name=value} format.
*
- * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.add()}).
+ * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.add}).
*/
@CanIgnoreReturnValue
public ToStringHelper add(String name, long value) {
@@ -276,7 +278,7 @@ public ToStringHelper addValue(@Nullable Object value) {
*
It is strongly encouraged to use {@link #add(String, boolean)} instead and give value a
* readable name.
*
- * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.addValue()}).
+ * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.addValue}).
*/
@CanIgnoreReturnValue
public ToStringHelper addValue(boolean value) {
@@ -289,7 +291,7 @@ public ToStringHelper addValue(boolean value) {
*
It is strongly encouraged to use {@link #add(String, char)} instead and give value a
* readable name.
*
- * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.addValue()}).
+ * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.addValue}).
*/
@CanIgnoreReturnValue
public ToStringHelper addValue(char value) {
@@ -302,7 +304,7 @@ public ToStringHelper addValue(char value) {
*
It is strongly encouraged to use {@link #add(String, double)} instead and give value a
* readable name.
*
- * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.addValue()}).
+ * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.addValue}).
*/
@CanIgnoreReturnValue
public ToStringHelper addValue(double value) {
@@ -315,7 +317,7 @@ public ToStringHelper addValue(double value) {
*
It is strongly encouraged to use {@link #add(String, float)} instead and give value a
* readable name.
*
- * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.addValue()}).
+ * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.addValue}).
*/
@CanIgnoreReturnValue
public ToStringHelper addValue(float value) {
@@ -328,7 +330,7 @@ public ToStringHelper addValue(float value) {
*
It is strongly encouraged to use {@link #add(String, int)} instead and give value a
* readable name.
*
- * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.addValue()}).
+ * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.addValue}).
*/
@CanIgnoreReturnValue
public ToStringHelper addValue(int value) {
@@ -341,7 +343,7 @@ public ToStringHelper addValue(int value) {
*
It is strongly encouraged to use {@link #add(String, long)} instead and give value a
* readable name.
*
- * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.addValue()}).
+ * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.addValue}).
*/
@CanIgnoreReturnValue
public ToStringHelper addValue(long value) {