public NumberFormatContext(NumberFormatOptions<?> options, NumberFormatMode defaultFormatMode, int currencyDigits) { this.options = options; this.formatMode = orDefault(options.formatMode(), defaultFormatMode); this.currencyDigits = currencyDigits; }
public _NumberFormatter_en_LR() { super( CLDR.Locale.en_LR, new _Params(), // decimal standard patterns("#,##0.###", "-#,##0.###"), // percent standard patterns("#,##0%", "-#,##0%"), // currency standard patterns("¤#,##0.00", "-¤#,##0.00"), // currency accounting patterns("¤#,##0.00", "(¤#,##0.00)"), // units standard patterns("#,##0.#", "-#,##0.#") ); }
public _NumberFormatter_en_AT() { super( CLDR.Locale.en_AT, new _Params(), // decimal standard patterns("#,##0.###", "-#,##0.###"), // percent standard patterns("#,##0 %", "-#,##0 %"), // currency standard patterns("¤ #,##0.00", "-¤ #,##0.00"), // currency accounting patterns("¤ #,##0.00", "-¤ #,##0.00"), // units standard patterns("#,##0.#", "-#,##0.#") ); }
public _NumberFormatter_en_JM() { super( CLDR.Locale.en_JM, new _Params(), // decimal standard patterns("#,##0.###", "-#,##0.###"), // percent standard patterns("#,##0%", "-#,##0%"), // currency standard patterns("¤#,##0.00", "-¤#,##0.00"), // currency accounting patterns("¤#,##0.00", "(¤#,##0.00)"), // units standard patterns("#,##0.#", "-#,##0.#") ); }
public _NumberFormatter_en_IN() { super( CLDR.Locale.en_IN, new _Params(), // decimal standard patterns("#,##,##0.###", "-#,##,##0.###"), // percent standard patterns("#,##,##0%", "-#,##,##0%"), // currency standard patterns("¤ #,##,##0.00", "-¤ #,##,##0.00"), // currency accounting patterns("¤#,##0.00", "(¤#,##0.00)"), // units standard patterns("#,##,##0.#", "-#,##,##0.#") ); }
public _NumberFormatter_de_IT() { super( CLDR.Locale.de_IT, new _Params(), // decimal standard patterns("#,##0.###", "-#,##0.###"), // percent standard patterns("#,##0 %", "-#,##0 %"), // currency standard patterns("#,##0.00 ¤", "-#,##0.00 ¤"), // currency accounting patterns("#,##0.00 ¤", "-#,##0.00 ¤"), // units standard patterns("#,##0.#", "-#,##0.#") ); }
public _NumberFormatter_en_NU() { super( CLDR.Locale.en_NU, new _Params(), // decimal standard patterns("#,##0.###", "-#,##0.###"), // percent standard patterns("#,##0%", "-#,##0%"), // currency standard patterns("¤#,##0.00", "-¤#,##0.00"), // currency accounting patterns("¤#,##0.00", "(¤#,##0.00)"), // units standard patterns("#,##0.#", "-#,##0.#") ); }
public _NumberFormatter_en_MG() { super( CLDR.Locale.en_MG, new _Params(), // decimal standard patterns("#,##0.###", "-#,##0.###"), // percent standard patterns("#,##0%", "-#,##0%"), // currency standard patterns("¤#,##0.00", "-¤#,##0.00"), // currency accounting patterns("¤#,##0.00", "(¤#,##0.00)"), // units standard patterns("#,##0.#", "-#,##0.#") ); }
public _NumberFormatter_en_LS() { super( CLDR.Locale.en_LS, new _Params(), // decimal standard patterns("#,##0.###", "-#,##0.###"), // percent standard patterns("#,##0%", "-#,##0%"), // currency standard patterns("¤#,##0.00", "-¤#,##0.00"), // currency accounting patterns("¤#,##0.00", "(¤#,##0.00)"), // units standard patterns("#,##0.#", "-#,##0.#") ); }
/** * Reset the options to their defaults. */ public void reset() { this.style = DEFAULT_STYLE; super.reset(); }
/** * Append a character to the buffer, expanding it if necessary. */ public DigitBuffer append(char ch) { check(1); this.buf[size] = ch; size++; return this; }
public T setRoundMode(NumberRoundMode mode) { this.roundMode = mode == null ? NumberRoundMode.ROUND : mode; return self(); }
/** * Reset the options to their defaults. */ public void reset() { this.format = DEFAULT_FORMAT; super.reset(); }
/** * Reset the options to their defaults. */ public void reset() { this.style = DEFAULT_STYLE; super.reset(); }