@@ -90,6 +90,7 @@ private FormattingStyle(String newline, String indent, boolean spaceAfterSeparat
90
90
*
91
91
* @param newline the string value that will be used as newline.
92
92
* @return a newly created {@link FormattingStyle}
93
+ * @see #getNewline()
93
94
*/
94
95
public FormattingStyle withNewline (String newline ) {
95
96
return new FormattingStyle (newline , this .indent , this .spaceAfterSeparators );
@@ -98,10 +99,11 @@ public FormattingStyle withNewline(String newline) {
98
99
/**
99
100
* Creates a {@link FormattingStyle} with the specified indent string.
100
101
*
101
- * <p>Only combinations of spaces and tabs allowed in indent.
102
+ * <p>Only combinations of spaces and tabs are allowed in indent.
102
103
*
103
104
* @param indent the string value that will be used as indent.
104
105
* @return a newly created {@link FormattingStyle}
106
+ * @see #getIndent()
105
107
*/
106
108
public FormattingStyle withIndent (String indent ) {
107
109
return new FormattingStyle (this .newline , indent , this .spaceAfterSeparators );
@@ -117,6 +119,7 @@ public FormattingStyle withIndent(String indent) {
117
119
*
118
120
* @param spaceAfterSeparators whether to output a space after {@code ','} and {@code ':'}.
119
121
* @return a newly created {@link FormattingStyle}
122
+ * @see #usesSpaceAfterSeparators()
120
123
*/
121
124
public FormattingStyle withSpaceAfterSeparators (boolean spaceAfterSeparators ) {
122
125
return new FormattingStyle (this .newline , this .indent , spaceAfterSeparators );
@@ -126,6 +129,7 @@ public FormattingStyle withSpaceAfterSeparators(boolean spaceAfterSeparators) {
126
129
* Returns the string value that will be used as a newline.
127
130
*
128
131
* @return the newline value.
132
+ * @see #withNewline(String)
129
133
*/
130
134
public String getNewline () {
131
135
return this .newline ;
@@ -135,12 +139,17 @@ public String getNewline() {
135
139
* Returns the string value that will be used as indent.
136
140
*
137
141
* @return the indent value.
142
+ * @see #withIndent(String)
138
143
*/
139
144
public String getIndent () {
140
145
return this .indent ;
141
146
}
142
147
143
- /** Returns whether a space will be used after {@code ','} and {@code ':'}. */
148
+ /**
149
+ * Returns whether a space will be used after {@code ','} and {@code ':'}.
150
+ *
151
+ * @see #withSpaceAfterSeparators(boolean)
152
+ */
144
153
public boolean usesSpaceAfterSeparators () {
145
154
return this .spaceAfterSeparators ;
146
155
}
0 commit comments