Skip to content

Commit bbcc1e7

Browse files
committed
Javadoc
1 parent a7cbd84 commit bbcc1e7

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

src/main/java/org/apache/commons/text/TextStringBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3019,7 +3019,7 @@ public TextStringBuilder setLength(final int length) {
30193019
* Sets the text to be appended when {@link #appendNewLine() new line} is called.
30203020
*
30213021
* @param newLine the new line text, {@code null} means use the system default from {@link System#lineSeparator()}.
3022-
* @return this instance.
3022+
* @return {@code this} instance.
30233023
*/
30243024
public TextStringBuilder setNewLineText(final String newLine) {
30253025
this.newLine = newLine;

src/main/java/org/apache/commons/text/numbers/DoubleFormat.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ private Builder(final Function<Builder, DoubleFunction<String>> factory) {
424424
*
425425
* @param signedZero if {@code true}, the zero string may be returned with a preceding minus sign; if {@code false}, the zero string will only be
426426
* returned in its positive form
427-
* @return this instance
427+
* @return {@code this} instance
428428
*/
429429
public Builder allowSignedZero(final boolean signedZero) {
430430
this.signedZero = signedZero;
@@ -437,7 +437,7 @@ public Builder allowSignedZero(final boolean signedZero) {
437437
* ENGINEERING}, and {@link DoubleFormat#MIXED MIXED}. The default value is {@code false}.
438438
*
439439
* @param alwaysIncludeExponent if {@code true}, exponents will always be included in formatted output even if the exponent value is zero
440-
* @return this instance
440+
* @return {@code this} instance
441441
*/
442442
public Builder alwaysIncludeExponent(final boolean alwaysIncludeExponent) {
443443
this.alwaysIncludeExponent = alwaysIncludeExponent;
@@ -460,7 +460,7 @@ public DoubleFunction<String> build() {
460460
* default value is {@code '.'}.
461461
*
462462
* @param decimalSeparator decimal separator character
463-
* @return this instance
463+
* @return {@code this} instance
464464
*/
465465
public Builder decimalSeparator(final char decimalSeparator) {
466466
this.decimalSeparator = decimalSeparator;
@@ -471,7 +471,7 @@ public Builder decimalSeparator(final char decimalSeparator) {
471471
* Sets the string containing the digit characters 0-9, in that order. The default value is the string {@code "0123456789"}.
472472
*
473473
* @param digits string containing the digit characters 0-9
474-
* @return this instance
474+
* @return {@code this} instance
475475
* @throws NullPointerException if the argument is {@code null}
476476
* @throws IllegalArgumentException if the argument does not have a length of exactly 10
477477
*/
@@ -490,7 +490,7 @@ public Builder digits(final String digits) {
490490
* {@code "1.2E6"}.
491491
*
492492
* @param exponentSeparator exponent separator string
493-
* @return this instance
493+
* @return {@code this} instance
494494
* @throws NullPointerException if the argument is {@code null}
495495
*/
496496
public Builder exponentSeparator(final String exponentSeparator) {
@@ -513,7 +513,7 @@ public Builder exponentSeparator(final String exponentSeparator) {
513513
* consecutive characters.
514514
*
515515
* @param symbols format symbols
516-
* @return this instance
516+
* @return {@code this} instance
517517
* @throws NullPointerException if the argument is {@code null}
518518
*/
519519
public Builder formatSymbols(final DecimalFormatSymbols symbols) {
@@ -537,7 +537,7 @@ public DoubleFunction<String> get() {
537537
* Sets the character used to separate groups of thousands. Default value is {@code ','}.
538538
*
539539
* @param groupingSeparator character used to separate groups of thousands
540-
* @return this instance
540+
* @return {@code this} instance
541541
* @see #groupThousands(boolean)
542542
*/
543543
public Builder groupingSeparator(final char groupingSeparator) {
@@ -551,7 +551,7 @@ public Builder groupingSeparator(final char groupingSeparator) {
551551
* value is {@code false}.
552552
*
553553
* @param groupThousands if {@code true}, thousands will be grouped
554-
* @return this instance
554+
* @return {@code this} instance
555555
* @see #groupingSeparator(char)
556556
*/
557557
public Builder groupThousands(final boolean groupThousands) {
@@ -566,7 +566,7 @@ public Builder groupThousands(final boolean groupThousands) {
566566
*
567567
* @param fractionPlaceholder if {@code true}, a zero character is placed in the fraction position when no fractional value is present; if
568568
* {@code false}, fractional digits are only included when needed
569-
* @return this instance
569+
* @return {@code this} instance
570570
*/
571571
public Builder includeFractionPlaceholder(final boolean fractionPlaceholder) {
572572
this.fractionPlaceholder = fractionPlaceholder;
@@ -577,7 +577,7 @@ public Builder includeFractionPlaceholder(final boolean fractionPlaceholder) {
577577
* Sets the string used to represent infinity. For negative infinity, this string is prefixed with the {@link #minusSign(char) minus sign}.
578578
*
579579
* @param infinity string used to represent infinity
580-
* @return this instance
580+
* @return {@code this} instance
581581
* @throws NullPointerException if the argument is {@code null}
582582
*/
583583
public Builder infinity(final String infinity) {
@@ -590,7 +590,7 @@ public Builder infinity(final String infinity) {
590590
* {@code 0}.
591591
*
592592
* @param maxPrecision maximum precision
593-
* @return this instance
593+
* @return {@code this} instance
594594
*/
595595
public Builder maxPrecision(final int maxPrecision) {
596596
this.maxPrecision = maxPrecision;
@@ -604,7 +604,7 @@ public Builder maxPrecision(final int maxPrecision) {
604604
* {@code 0.001} is formatted, then the result is the zero string.
605605
*
606606
* @param minDecimalExponent minimum decimal exponent
607-
* @return this instance
607+
* @return {@code this} instance
608608
*/
609609
public Builder minDecimalExponent(final int minDecimalExponent) {
610610
this.minDecimalExponent = minDecimalExponent;
@@ -615,7 +615,7 @@ public Builder minDecimalExponent(final int minDecimalExponent) {
615615
* Sets the character used as the minus sign.
616616
*
617617
* @param minusSign character to use as the minus sign
618-
* @return this instance
618+
* @return {@code this} instance
619619
*/
620620
public Builder minusSign(final char minusSign) {
621621
this.minusSign = minusSign;
@@ -626,7 +626,7 @@ public Builder minusSign(final char minusSign) {
626626
* Sets the string used to represent {@link Double#NaN}.
627627
*
628628
* @param nan string used to represent {@link Double#NaN}
629-
* @return this instance
629+
* @return {@code this} instance
630630
* @throws NullPointerException if the argument is {@code null}
631631
*/
632632
public Builder nan(final String nan) {
@@ -649,7 +649,7 @@ public Builder nan(final String nan) {
649649
*
650650
* @param plainFormatMaxDecimalExponent maximum decimal exponent for values formatted as plain strings when using the {@link DoubleFormat#MIXED MIXED}
651651
* format type.
652-
* @return this instance
652+
* @return {@code this} instance
653653
* @see #plainFormatMinDecimalExponent(int)
654654
*/
655655
public Builder plainFormatMaxDecimalExponent(final int plainFormatMaxDecimalExponent) {
@@ -672,7 +672,7 @@ public Builder plainFormatMaxDecimalExponent(final int plainFormatMaxDecimalExpo
672672
*
673673
* @param plainFormatMinDecimalExponent maximum decimal exponent for values formatted as plain strings when using the {@link DoubleFormat#MIXED MIXED}
674674
* format type.
675-
* @return this instance
675+
* @return {@code this} instance
676676
* @see #plainFormatMinDecimalExponent(int)
677677
*/
678678
public Builder plainFormatMinDecimalExponent(final int plainFormatMinDecimalExponent) {

0 commit comments

Comments
 (0)