Double.h

Go to the documentation of this file.
00001 #ifndef JAVA_LANG_DOUBLE_H
00002 #define JAVA_LANG_DOUBLE_H 1
00003 
00004 #ifndef JAVA_LANG_NUMBER_H
00005 #include <java_lang/Number.h>
00006 #endif /* JAVA_LANG_NUMBER_H */
00007 
00008 namespace java {
00009   namespace lang {
00010 
00019     class JAVA_LANG_SPEC Double : public Number, public Comparable {
00020 
00021     public:
00022 
00028       static const jdouble POSITIVE_INFINITY;
00029 
00035       static const jdouble NEGATIVE_INFINITY;
00036 
00042       static const jdouble NaN;
00043 
00049       static const jdouble MIN_VALUE;
00050 
00056       static const jdouble MAX_VALUE;
00057 
00089       static jlong doubleToLongBits(jdouble value);
00090 
00130       static jdouble longBitsToDouble(jlong bits);
00131 
00140       static jboolean isNaN(jdouble v);
00141 
00149       static jboolean isInfinite(jdouble v);
00150 
00202       static String toString(jdouble f);
00203 
00240       static Double valueOf(const String& s);
00241 
00254       static jdouble parseDouble(const String& s);
00255 
00262       Double(jdouble _value = 0);
00263 
00264       operator jdouble&();
00265 
00272       virtual jboolean isNaN() const;
00273 
00281       virtual jboolean isInfinite() const;
00282 
00292       virtual String toString() const;
00293 
00299       virtual jbyte byteValue() const;
00300 
00306       virtual jshort shortValue() const;
00307 
00313       virtual jint intValue() const;
00314 
00322       virtual jlong longValue() const;
00323 
00331       virtual jfloat floatValue() const;
00332 
00340       virtual jdouble doubleValue() const;
00341 
00379       virtual jboolean equals(const Object& src) const;
00380 
00398       virtual jint hashCode() const;
00399 
00428       virtual jint compareTo(const Object& src) const;
00429 
00430     private:
00431 
00435       jdouble value;
00436 
00437       REGISTER_MEMBERS;
00438 
00439     };
00440 
00441   } // namespace lang
00442 } // namespace java
00443 
00444 #endif /* JAVA_LANG_DOUBLE_H */

Generated on Fri May 16 11:54:43 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3