]> granicus.if.org Git - icu/commitdiff
ICU-13177 Fixed API doc issues. Missing explicit constructor for NumberFormatter.
authorYoshito Umaoka <y.umaoka@gmail.com>
Tue, 3 Oct 2017 04:19:30 +0000 (04:19 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Tue, 3 Oct 2017 04:19:30 +0000 (04:19 +0000)
X-SVN-Rev: 40530

icu4j/main/classes/core/src/com/ibm/icu/number/FormattedNumber.java
icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatter.java
icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatterSettings.java
icu4j/main/classes/core/src/com/ibm/icu/util/NoUnit.java

index 293adc09dca27b2bb5edf8c8ffb950b7623b5fb5..92cdd5d3ff8b20160a595ec38c0b6a6087ebe751 100644 (file)
@@ -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)
index 8021ca22f58acf2905b32a31926a2ab0e72fe3c7..2b788a4165b3fb042d417bb1ebe8657e8a10904c 100644 (file)
@@ -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.
index 55e94489c60e1fda7eaf449d69dd868d92a6164c..884fb64c8961493f07cfddc3a770efbf18d8289f 100644 (file)
@@ -527,11 +527,23 @@ public abstract class NumberFormatterSettings<T extends NumberFormatterSettings<
         return macros;
     }
 
+    /**
+     * {@inheritDoc}
+     *
+     * @draft ICU 60
+     * @provisional This API might change or be removed in a future release.
+     */
     @Override
     public int hashCode() {
         return resolve().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) {
index 5e1acb615fedd76546d756236f7e3bd0dd9d7e6a..32beeb685d9aa37f4cdc2c58ef4540c1e7a35231 100644 (file)
@@ -8,7 +8,7 @@ import com.ibm.icu.number.NumberFormatter;
  * Dimensionless unit for percent and permille.
  * @see NumberFormatter
  * @draft ICU 60
    * @provisional This API might change or be removed in a future release.
+ * @provisional This API might change or be removed in a future release.
  */
 public class NoUnit extends MeasureUnit {
     private static final long serialVersionUID = 2467174286237024095L;
@@ -40,6 +40,12 @@ public class NoUnit extends MeasureUnit {
     public static final NoUnit PERMILLE =
         (NoUnit) MeasureUnit.internalGetInstance("none", "permille");
 
+
+    /**
+     * @internal
+     * @deprecated This API is ICU internal only.
+     */
+    @Deprecated
     protected NoUnit(String subType) {
         super("none", subType);
     }