From: Yoshito Umaoka Date: Tue, 3 Oct 2017 04:19:30 +0000 (+0000) Subject: ICU-13177 Fixed API doc issues. Missing explicit constructor for NumberFormatter. X-Git-Tag: release-60-rc~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34041737df02d85fc3b4e9323245f69d63c2e182;p=icu ICU-13177 Fixed API doc issues. Missing explicit constructor for NumberFormatter. X-SVN-Rev: 40530 --- diff --git a/icu4j/main/classes/core/src/com/ibm/icu/number/FormattedNumber.java b/icu4j/main/classes/core/src/com/ibm/icu/number/FormattedNumber.java index 293adc09dca..92cdd5d3ff8 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/number/FormattedNumber.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/number/FormattedNumber.java @@ -175,6 +175,12 @@ public class FormattedNumber { return fq; } + /** + * {@inheritDoc} + * + * @draft ICU 60 + * @provisional This API might change or be removed in a future release. + */ @Override public int hashCode() { // NumberStringBuilder and BigDecimal are mutable, so we can't call @@ -182,6 +188,12 @@ public class FormattedNumber { return Arrays.hashCode(nsb.toCharArray()) ^ Arrays.hashCode(nsb.toFieldArray()) ^ fq.toBigDecimal().hashCode(); } + /** + * {@inheritDoc} + * + * @draft ICU 60 + * @provisional This API might change or be removed in a future release. + */ @Override public boolean equals(Object other) { if (this == other) diff --git a/icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatter.java b/icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatter.java index 8021ca22f58..2b788a4165b 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatter.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatter.java @@ -271,6 +271,12 @@ public final class NumberFormatter { */ static final long DEFAULT_THRESHOLD = 3; + /** + * Private constructor, not designed for instantiation. + */ + private NumberFormatter() { + } + /** * Call this method at the beginning of a NumberFormatter fluent chain in which the locale is not currently known at * the call site. diff --git a/icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatterSettings.java b/icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatterSettings.java index 55e94489c60..884fb64c896 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatterSettings.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatterSettings.java @@ -527,11 +527,23 @@ public abstract class NumberFormatterSettings