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
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)
*/
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.
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) {
* 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;
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);
}