2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __java_text_NumberFormat__
5 #define __java_text_NumberFormat__
9 #include <java/text/Format.h>
10 #include <gcj/array.h>
25 class java::text::NumberFormat
: public ::java::text::Format
29 virtual ::java::lang::String
* format(jlong
);
30 virtual ::java::lang::StringBuffer
* format(::java::lang::Object
*, ::java::lang::StringBuffer
*, ::java::text::FieldPosition
*);
31 virtual ::java::lang::StringBuffer
* format(jdouble
, ::java::lang::StringBuffer
*, ::java::text::FieldPosition
*) = 0;
32 virtual ::java::lang::StringBuffer
* format(jlong
, ::java::lang::StringBuffer
*, ::java::text::FieldPosition
*) = 0;
33 virtual jboolean
equals(::java::lang::Object
*);
34 static JArray
< ::java::util::Locale
* > * getAvailableLocales();
36 static ::java::text::NumberFormat
* computeInstance(::java::util::Locale
*, ::java::lang::String
*, ::java::lang::String
*);
38 static ::java::text::NumberFormat
* getCurrencyInstance();
39 static ::java::text::NumberFormat
* getCurrencyInstance(::java::util::Locale
*);
40 static ::java::text::NumberFormat
* getInstance();
41 static ::java::text::NumberFormat
* getInstance(::java::util::Locale
*);
42 virtual jint
getMaximumFractionDigits();
43 virtual jint
getMaximumIntegerDigits();
44 virtual jint
getMinimumFractionDigits();
45 virtual jint
getMinimumIntegerDigits();
46 static ::java::text::NumberFormat
* getNumberInstance();
47 static ::java::text::NumberFormat
* getNumberInstance(::java::util::Locale
*);
48 static ::java::text::NumberFormat
* getIntegerInstance();
49 static ::java::text::NumberFormat
* getIntegerInstance(::java::util::Locale
*);
50 static ::java::text::NumberFormat
* getPercentInstance();
51 static ::java::text::NumberFormat
* getPercentInstance(::java::util::Locale
*);
52 virtual jint
hashCode();
53 virtual jboolean
isGroupingUsed();
54 virtual jboolean
isParseIntegerOnly();
56 virtual ::java::lang::Number
* parse(::java::lang::String
*, ::java::text::ParsePosition
*) = 0;
57 virtual ::java::lang::Number
* parse(::java::lang::String
*);
58 virtual ::java::lang::Object
* parseObject(::java::lang::String
*, ::java::text::ParsePosition
*);
59 virtual void setGroupingUsed(jboolean
);
60 virtual void setMaximumFractionDigits(jint
);
61 virtual void setMaximumIntegerDigits(jint
);
62 virtual void setMinimumFractionDigits(jint
);
63 virtual void setMinimumIntegerDigits(jint
);
64 virtual void setParseIntegerOnly(jboolean
);
65 virtual ::java::lang::String
* format(jdouble
);
67 void readObject(::java::io::ObjectInputStream
*);
68 void writeObject(::java::io::ObjectOutputStream
*);
70 virtual ::java::util::Currency
* getCurrency();
71 virtual void setCurrency(::java::util::Currency
*);
72 static const jint INTEGER_FIELD
= 0;
73 static const jint FRACTION_FIELD
= 1;
74 public: // actually package-private
75 jboolean
__attribute__((aligned(__alignof__( ::java::text::Format
)))) groupingUsed
;
76 jint maximumFractionDigits
;
78 jbyte maxFractionDigits
;
79 public: // actually package-private
80 jint maximumIntegerDigits
;
82 jbyte maxIntegerDigits
;
83 public: // actually package-private
84 jint minimumFractionDigits
;
86 jbyte minFractionDigits
;
87 public: // actually package-private
88 jint minimumIntegerDigits
;
90 jbyte minIntegerDigits
;
91 public: // actually package-private
92 jboolean parseIntegerOnly
;
94 jint serialVersionOnStream
;
95 static const jlong serialVersionUID
= -2308460125733713944LL;
97 static ::java::lang::Class
class$
;
100 #endif // __java_text_NumberFormat__