@@ -697,6 +697,7 @@ static ToStringHelperImpl toStringHelper(Class<?> clazz) {
697697 * Object#getClass()}.
698698 *
699699 * @param className the name of the instance type
700+ * @return an instance of {@link ToStringHelperImpl}
700701 */
701702 public static ToStringHelperImpl toStringHelper (String className ) {
702703 return new ToStringHelperImpl (className );
@@ -722,6 +723,8 @@ private ToStringHelperImpl(String className) {
722723 * Configures the {@link ToStringHelperImpl} so {@link #toString()} will ignore properties with
723724 * null value. The order of calling this method, relative to the {@code add()}/{@code
724725 * addValue()} methods, is not significant.
726+ *
727+ * @return this instance of {@link ToStringHelperImpl}
725728 */
726729 public ToStringHelperImpl omitNullValues () {
727730 omitNullValues = true ;
@@ -732,42 +735,88 @@ public ToStringHelperImpl omitNullValues() {
732735 * Adds a name/value pair to the formatted output in {@code name=value} format. If {@code value}
733736 * is {@code null}, the string {@code "null"} is used, unless {@link #omitNullValues()} is
734737 * called, in which case this name/value pair will not be added.
738+ *
739+ * @param name the name
740+ * @param value the {@link Object} value
741+ * @return this instance of {@link ToStringHelperImpl}
735742 */
736743 public ToStringHelperImpl add (String name , Object value ) {
737744 return addHolder (name , value );
738745 }
739746
740- /** Adds a name/value pair to the formatted output in {@code name=value} format. */
747+ /**
748+ * Adds a name/value pair to the formatted output in {@code name=value} format.
749+ *
750+ * @param name the name
751+ * @param value the {@link ZonedDateTime} value
752+ * @return this instance of {@link ToStringHelperImpl}
753+ */
741754 public ToStringHelperImpl add (String name , ZonedDateTime value ) {
742755 return addHolder (name , value );
743756 }
744757
745- /** Adds a name/value pair to the formatted output in {@code name=value} format. */
758+ /**
759+ * Adds a name/value pair to the formatted output in {@code name=value} format.
760+ *
761+ * @param name the name
762+ * @param value the {@code boolean} value
763+ * @return this instance of {@link ToStringHelperImpl}
764+ */
746765 public ToStringHelperImpl add (String name , boolean value ) {
747766 return addHolder (name , String .valueOf (value ));
748767 }
749768
750- /** Adds a name/value pair to the formatted output in {@code name=value} format. */
769+ /**
770+ * Adds a name/value pair to the formatted output in {@code name=value} format.
771+ *
772+ * @param name the name
773+ * @param value the {@code char} value
774+ * @return this instance of {@link ToStringHelperImpl}
775+ */
751776 public ToStringHelperImpl add (String name , char value ) {
752777 return addHolder (name , String .valueOf (value ));
753778 }
754779
755- /** Adds a name/value pair to the formatted output in {@code name=value} format. */
780+ /**
781+ * Adds a name/value pair to the formatted output in {@code name=value} format.
782+ *
783+ * @param name the name
784+ * @param value the {@code double} value
785+ * @return this instance of {@link ToStringHelperImpl}
786+ */
756787 public ToStringHelperImpl add (String name , double value ) {
757788 return addHolder (name , String .valueOf (value ));
758789 }
759790
760- /** Adds a name/value pair to the formatted output in {@code name=value} format. */
791+ /**
792+ * Adds a name/value pair to the formatted output in {@code name=value} format.
793+ *
794+ * @param name the name
795+ * @param value the {@code float} value
796+ * @return this instance of {@link ToStringHelperImpl}
797+ */
761798 public ToStringHelperImpl add (String name , float value ) {
762799 return addHolder (name , String .valueOf (value ));
763800 }
764801
765- /** Adds a name/value pair to the formatted output in {@code name=value} format. */
802+ /**
803+ * Adds a name/value pair to the formatted output in {@code name=value} format.
804+ *
805+ * @param name the name
806+ * @param value the {@code int} value
807+ * @return this instance of {@link ToStringHelperImpl}
808+ */
766809 public ToStringHelperImpl add (String name , int value ) {
767810 return addHolder (name , String .valueOf (value ));
768811 }
769812
770- /** Adds a name/value pair to the formatted output in {@code name=value} format. */
813+ /**
814+ * Adds a name/value pair to the formatted output in {@code name=value} format.
815+ *
816+ * @param name the name
817+ * @param value the {@code long} value
818+ * @return this instance of {@link ToStringHelperImpl}
819+ */
771820 public ToStringHelperImpl add (String name , long value ) {
772821 return addHolder (name , String .valueOf (value ));
773822 }
@@ -777,6 +826,9 @@ public ToStringHelperImpl add(String name, long value) {
777826 *
778827 * <p>It is strongly encouraged to use {@link #add(String, Object)} instead and give value a
779828 * readable name.
829+ *
830+ * @param value the {@link Object} value
831+ * @return this instance of {@link ToStringHelperImpl}
780832 */
781833 public ToStringHelperImpl addValue (Object value ) {
782834 return addHolder (value );
@@ -787,6 +839,9 @@ public ToStringHelperImpl addValue(Object value) {
787839 *
788840 * <p>It is strongly encouraged to use {@link #add(String, boolean)} instead and give value a
789841 * readable name.
842+ *
843+ * @param value the {@code boolean} value
844+ * @return this instance of {@link ToStringHelperImpl}
790845 */
791846 public ToStringHelperImpl addValue (boolean value ) {
792847 return addHolder (String .valueOf (value ));
@@ -797,6 +852,9 @@ public ToStringHelperImpl addValue(boolean value) {
797852 *
798853 * <p>It is strongly encouraged to use {@link #add(String, char)} instead and give value a
799854 * readable name.
855+ *
856+ * @param value the {@code char} value
857+ * @return this instance of {@link ToStringHelperImpl}
800858 */
801859 public ToStringHelperImpl addValue (char value ) {
802860 return addHolder (String .valueOf (value ));
@@ -807,6 +865,9 @@ public ToStringHelperImpl addValue(char value) {
807865 *
808866 * <p>It is strongly encouraged to use {@link #add(String, double)} instead and give value a
809867 * readable name.
868+ *
869+ * @param value the {@code double} value
870+ * @return this instance of {@link ToStringHelperImpl}
810871 */
811872 public ToStringHelperImpl addValue (double value ) {
812873 return addHolder (String .valueOf (value ));
@@ -817,6 +878,9 @@ public ToStringHelperImpl addValue(double value) {
817878 *
818879 * <p>It is strongly encouraged to use {@link #add(String, float)} instead and give value a
819880 * readable name.
881+ *
882+ * @param value the {@code float} value
883+ * @return this instance of {@link ToStringHelperImpl}
820884 */
821885 public ToStringHelperImpl addValue (float value ) {
822886 return addHolder (String .valueOf (value ));
@@ -827,6 +891,9 @@ public ToStringHelperImpl addValue(float value) {
827891 *
828892 * <p>It is strongly encouraged to use {@link #add(String, int)} instead and give value a
829893 * readable name.
894+ *
895+ * @param value the {@code int} value
896+ * @return this instance of {@link ToStringHelperImpl}
830897 */
831898 public ToStringHelperImpl addValue (int value ) {
832899 return addHolder (String .valueOf (value ));
@@ -837,6 +904,9 @@ public ToStringHelperImpl addValue(int value) {
837904 *
838905 * <p>It is strongly encouraged to use {@link #add(String, long)} instead and give value a
839906 * readable name.
907+ *
908+ * @param value the {@code long} value
909+ * @return this instance of {@link ToStringHelperImpl}
840910 */
841911 public ToStringHelperImpl addValue (long value ) {
842912 return addHolder (String .valueOf (value ));
0 commit comments