Short.h

Go to the documentation of this file.
00001 #ifndef JAVA_LANG_SHORT_H
00002 #define JAVA_LANG_SHORT_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 Short : public Number, public Comparable {
00020 
00021     public:
00022 
00026       static const jshort MIN_VALUE;
00027 
00028 
00032       static const jshort MAX_VALUE;
00033 
00046       static jshort parseShort(const String& s, jint radix = 10);
00047 
00060       static const Short valueOf(const String& s, jint radix = 10);
00061 
00067       Short(jshort _value = 0);
00068 
00069       operator jshort&();
00070 
00076       virtual jbyte byteValue() const;
00077 
00083       virtual jshort shortValue() const;
00084 
00090       virtual jint intValue() const;
00091 
00099       virtual jlong longValue() const;
00100 
00108       virtual jfloat floatValue() const;
00109 
00117       virtual jdouble doubleValue() const;
00118 
00125       virtual jboolean equals(const Object& src) const;
00126 
00130       virtual jint hashCode() const;
00131 
00150       virtual jint compareTo(const Object& src) const;
00151 
00155       virtual String toString() const;
00156 
00157     private:
00158 
00162       jshort value;
00163 
00164       REGISTER_MEMBERS;
00165 
00166     };
00167 
00168   } // namespace lang
00169 } // namespace java
00170 
00171 #endif /* JAVA_LANG_SHORT_H */

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