From 672786786dc8566bb1ec3e80f5423841561f967b Mon Sep 17 00:00:00 2001 From: Michael Ow Date: Wed, 25 Jan 2012 21:17:06 +0000 Subject: [PATCH] ICU-8940 Add new ICU4J API to set decimal format symbols in RBNF X-SVN-Rev: 31266 --- .../com/ibm/icu/text/RuleBasedNumberFormat.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/RuleBasedNumberFormat.java b/icu4j/main/classes/core/src/com/ibm/icu/text/RuleBasedNumberFormat.java index e45f33a6087..b2a61f73604 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/RuleBasedNumberFormat.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/RuleBasedNumberFormat.java @@ -1,6 +1,6 @@ /* ******************************************************************************* - * Copyright (C) 1996-2011, International Business Machines Corporation and * + * Copyright (C) 1996-2012, International Business Machines Corporation and * * others. All Rights Reserved. * ******************************************************************************* */ @@ -1376,6 +1376,18 @@ public class RuleBasedNumberFormat extends NumberFormat { } return ""; } + + /** + * Sets the decimal format symbols used by this formatter. The formatter uses a copy of the + * provided symbols. + * + * @param newSymbols desired DecimalFormatSymbols + * @see DecimalFormatSymbols + * @draft ICU 49 + */ + public void setDecimalFormatSymbols(DecimalFormatSymbols newSymbols) { + decimalFormatSymbols = (DecimalFormatSymbols) newSymbols.clone(); + } //----------------------------------------------------------------------- // package-internal API -- 2.40.0