Long.h

Go to the documentation of this file.
00001 #ifndef JAVA_LANG_LONG_H
00002 #define JAVA_LANG_LONG_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 
00028     class JAVA_LANG_SPEC Long : public Number, public Comparable {
00029 
00030     public:
00031 
00035       static const jlong MIN_VALUE;
00036 
00037 
00041       static const jlong MAX_VALUE;
00042 
00081       static String toString(jlong i, jint radix = 10);
00082 
00112       static String toHexString(jlong i);
00113 
00137       static String toOctalString(jlong i);
00138 
00158       static String toBinaryString(jlong i);
00159 
00211       static jlong parseLong(const String& s, jint radix = 10);
00212 
00239       static Long valueOf(const String& s, jint radix = 10);
00240 
00248       Long(jlong _value = 0);
00249 
00250       operator jlong&();
00251 
00257       virtual jbyte byteValue() const;
00258 
00264       virtual jshort shortValue() const;
00265 
00271       virtual jint intValue() const;
00272 
00280       virtual jlong longValue() const;
00281 
00289       virtual jfloat floatValue() const;
00290 
00298       virtual jdouble doubleValue() const;
00299 
00310       virtual jboolean equals(const Object& src) const;
00311 
00323       virtual jint hashCode() const;
00324 
00343       virtual jint compareTo(const Object& src) const;
00344 
00354       virtual String toString() const;
00355 
00356     private:
00357 
00361       static String toUnsignedString(jlong i, jint shift);
00362 
00366       jlong value;
00367 
00368       REGISTER_MEMBERS;
00369 
00370     };
00371 
00372   } // namespace lang
00373 } // namespace java
00374 
00375 #endif /* JAVA_LANG_LONG_H */

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