Integer.h

Go to the documentation of this file.
00001 #ifndef JAVA_LANG_INTEGER_H
00002 #define JAVA_LANG_INTEGER_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 
00026     class JAVA_LANG_SPEC Integer : public Number, public Comparable {
00027 
00028     public:
00029 
00034       static const jint MIN_VALUE;
00035 
00036 
00041       static const jint MAX_VALUE;
00042 
00081       static String toString(jint i, jint radix = 10);
00082 
00112       static String toHexString(jint i);
00113 
00137       static String toOctalString(jint i);
00138 
00160       static String toBinaryString(jint i);
00161 
00206       static jint parseInt(const String& s, jint radix = 10);
00207 
00232       static const Integer valueOf(const String& s, jint radix = 10);
00233 
00240       Integer(jint _value = 0);
00241 
00242       operator jint&();
00243 
00249       virtual jbyte byteValue() const;
00250 
00256       virtual jshort shortValue() const;
00257 
00263       virtual jint intValue() const;
00264 
00272       virtual jlong longValue() const;
00273 
00281       virtual jfloat floatValue() const;
00282 
00290       virtual jdouble doubleValue() const;
00291 
00302       virtual jboolean equals(const Object& src) const;
00303 
00311       virtual jint hashCode() const;
00312 
00330       virtual jint compareTo(const Object& src) const;
00331 
00341       virtual String toString() const;
00342 
00343     private:
00344 
00348       static String toUnsignedString(jint i, jint shift);
00349 
00353       jint value;
00354 
00355       REGISTER_MEMBERS;
00356 
00357     };
00358 
00359   } // namespace lang
00360 } // namespace java
00361 
00362 #endif /* JAVA_LANG_INTEGER_H */

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