Float.h

Go to the documentation of this file.
00001 #ifndef JAVA_LANG_FLOAT_H
00002 #define JAVA_LANG_FLOAT_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 
00021     class JAVA_LANG_SPEC Float : public Number, public Comparable {
00022 
00023     public:
00024 
00030       static const jfloat POSITIVE_INFINITY;
00031 
00037       static const jfloat NEGATIVE_INFINITY;
00038 
00044       static const jfloat NaN;
00045 
00051       static const jfloat MIN_VALUE;
00052 
00058       static const jfloat MAX_VALUE;
00059 
00087       static jint floatToIntBits(jfloat value);
00088 
00125       static jfloat intBitsToFloat(jint bits);
00126 
00135       static jboolean isNaN(jfloat v);
00136 
00144       static jboolean isInfinite(jfloat v);
00145 
00202       static String toString(jfloat f);
00203 
00238       static const Float valueOf(const String& s);
00239 
00252       static jfloat parseFloat(const String& s);
00253 
00260       Float(jfloat _value = 0);
00261 
00262       operator jfloat&();
00263 
00270       virtual jboolean isNaN() const;
00271 
00279       virtual jboolean isInfinite() const;
00280 
00290       virtual String toString() const;
00291 
00297       virtual jbyte byteValue() const;
00298 
00304       virtual jshort shortValue() const;
00305 
00311       virtual jint intValue() const;
00312 
00320       virtual jlong longValue() const;
00321 
00329       virtual jfloat floatValue() const;
00330 
00338       virtual jdouble doubleValue() const;
00339 
00374       virtual jboolean equals(const Object& src) const;
00375 
00384       virtual jint hashCode() const;
00385 
00404       virtual jint compareTo(const Object& src) const;
00405 
00406     private:
00407 
00411       jfloat value;
00412 
00413       REGISTER_MEMBERS;
00414 
00415     };
00416 
00417   } // namespace lang
00418 } // namespace java
00419 
00420 #endif /* JAVA_LANG_FLOAT_H */

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