37 |
|
|
38 |
package java.text; |
package java.text; |
39 |
|
|
40 |
|
import java.util.Currency; |
41 |
import java.util.Locale; |
import java.util.Locale; |
42 |
import java.util.MissingResourceException; |
import java.util.MissingResourceException; |
43 |
import java.util.ResourceBundle; |
import java.util.ResourceBundle; |
638 |
return dest; |
return dest; |
639 |
} |
} |
640 |
|
|
641 |
|
/** |
642 |
|
* Returns the currency corresponding to the currency symbol stored |
643 |
|
* in the instance of <code>DecimalFormatSymbols</code> used by this |
644 |
|
* <code>DecimalFormat</code>. |
645 |
|
* |
646 |
|
* @return A new instance of <code>Currency</code> if |
647 |
|
* the currency code matches a known one, null otherwise. |
648 |
|
*/ |
649 |
|
public Currency getCurrency() |
650 |
|
{ |
651 |
|
return symbols.getCurrency(); |
652 |
|
} |
653 |
|
|
654 |
public DecimalFormatSymbols getDecimalFormatSymbols () |
public DecimalFormatSymbols getDecimalFormatSymbols () |
655 |
{ |
{ |
656 |
return symbols; |
return symbols; |
870 |
return result; |
return result; |
871 |
} |
} |
872 |
|
|
873 |
|
/** |
874 |
|
* Sets the <code>Currency</code> on the |
875 |
|
* <code>DecimalFormatSymbols</code> used, which also sets the |
876 |
|
* currency symbols on those symbols. |
877 |
|
*/ |
878 |
|
public void setCurrency(Currency currency) |
879 |
|
{ |
880 |
|
symbols.setCurrency(currency); |
881 |
|
} |
882 |
|
|
883 |
public void setDecimalFormatSymbols (DecimalFormatSymbols newSymbols) |
public void setDecimalFormatSymbols (DecimalFormatSymbols newSymbols) |
884 |
{ |
{ |
885 |
symbols = newSymbols; |
symbols = newSymbols; |