618bf37b05
2007-04-04 Tania Bento <tbento@redhat.com> * java/text/DecimalFormatSymbols.java: Added the year 2007 to Copyright information and introduced new variable, currency. (DecimalFormatSymbols(Locale)): Define currency and intlCurrencySymbol to "XXX", currencySymbol to "?" and localCurrency appropriately. (getCurrency): Fixed documentation and return the value of currency. (setCurrency): Fixed documentation and update the value of currency. (setInternationalCurrencySymbol): Fixed documentation and update the value of currency. * java/util/Currency.java: Introduced two new variables, properties and fractionDigits. In the static block, a properties object is created and the currency resource is loaded. (Currency(Locale)): fractionDigits is defined. (Currency(String)): New method. (getDefaultFractionDigits): Return the value of fractionDigits. (getInstance(String)): Check if String is equal to "XXX". From-SVN: r123512
41 lines
1.2 KiB
C++
41 lines
1.2 KiB
C++
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
|
|
|
#ifndef __java_util_Currency__
|
|
#define __java_util_Currency__
|
|
|
|
#pragma interface
|
|
|
|
#include <java/lang/Object.h>
|
|
|
|
class java::util::Currency : public ::java::lang::Object
|
|
{
|
|
|
|
Currency();
|
|
Currency(::java::util::Locale *);
|
|
Currency(::java::lang::String *);
|
|
public:
|
|
::java::lang::String * getCurrencyCode();
|
|
jint getDefaultFractionDigits();
|
|
static ::java::util::Currency * getInstance(::java::util::Locale *);
|
|
static ::java::util::Currency * getInstance(::java::lang::String *);
|
|
::java::lang::String * getSymbol();
|
|
::java::lang::String * getSymbol(::java::util::Locale *);
|
|
::java::lang::String * toString();
|
|
private:
|
|
::java::lang::Object * readResolve();
|
|
public: // actually package-private
|
|
static const jlong serialVersionUID = -158308464356906721LL;
|
|
private:
|
|
::java::util::Locale * __attribute__((aligned(__alignof__( ::java::lang::Object)))) locale;
|
|
::java::util::ResourceBundle * res;
|
|
static ::java::util::Properties * properties;
|
|
::java::lang::String * currencyCode;
|
|
jint fractionDigits;
|
|
static ::java::util::Map * cache;
|
|
public:
|
|
static ::java::lang::Class class$;
|
|
};
|
|
|
|
#endif // __java_util_Currency__
|