Short class wraps a value of primitive type short in an object.
More...
#include <java_lang_Short.h>
Inheritance diagram for java::lang::Short:


Public Types | |
| enum | { xmogDefaultFlags = xmog_base::GLOBAL, xmogMajorVersion = 3, xmogMinorVersion = 2, xmogPatchVersion = 9, xmogBuildNumber = 2047 } |
|
typedef ::xmog_java_array_template< ::java::lang::Short > | array1D |
|
typedef ::xmog_java_array_template< ::xmog_java_array_template< ::java::lang::Short > > | array2D |
Public Member Functions | |
| jbyte | byteValue (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns the value of this Short as a byte. | |
| jint | compareTo (const ::java::lang::Short &anotherShort,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Compares two Short objects numerically. | |
| jint | compareTo (const ::java::lang::Object &o,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Compares this Short object to another object. | |
| jdouble | doubleValue (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns the value of this Short as a double. | |
| bool | equals (const ::java::lang::Object &obj,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Compares this object to the specified object. | |
| jfloat | floatValue (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns the value of this Short as a float. | |
| jint | hashCode (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns a hash code for this Short. | |
| jint | intValue (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns the value of this Short as an int. | |
| jlong | longValue (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns the value of this Short as a long. | |
| Short (const ::java::lang::String &s,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) | |
Constructs a newly allocated Short object that represents the short value indicated by the String parameter. | |
| Short (jshort value,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) | |
Constructs a newly allocated Short object that represents the specified short value. | |
| jshort | shortValue (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns the value of this Short as a short. | |
| ::java::lang::String | toString (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns a String object representing this Short's value. | |
Static Public Member Functions | |
| ::java::lang::Short | decode (const ::java::lang::String &nm,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Decodes a String into a Short. | |
| static jshort | parseShort (const ::java::lang::String &s, jint radix,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Parses the string argument as a signed short in the radix specified by the second argument. | |
| static jshort | parseShort (const ::java::lang::String &s,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Parses the string argument as a signed decimal short. | |
| ::java::lang::String | toString (jshort s,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns a new String object representing the specified short. | |
| ::java::lang::Short | valueOf (const ::java::lang::String &s, jint radix,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns a Short object holding the value extracted from the specified String when parsed with the radix given by the second argument. | |
| ::java::lang::Short | valueOf (const ::java::lang::String &s,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns a Short object holding the value given by the specified String. | |
Static Public Attributes | |
| static xmog_short | MAX_VALUE |
A constant holding the maximum value a short can have, 215-1. | |
| static xmog_short | MIN_VALUE |
A constant holding the minimum value a short can have, -215. | |
| ::java::lang::Class | TYPE |
The Class instance representing the primitive type short. | |
Short class wraps a value of primitive type short in an object.
An object of type Short contains a single field whose type is short.
In addition, this class provides several methods for converting a short to a String and a String to a short, as well as other constants and methods useful when dealing with a short.
|
||||||||||||||||
|
Constructs a newly allocated
|
|
||||||||||||||||
|
Constructs a newly allocated
The string is converted to a
|
|
||||||||||||
|
Returns the value of this
Reimplemented from java::lang::Number. |
|
||||||||||||||||
|
Compares two
|
|
||||||||||||||||
|
Compares this
If the object is a
Reimplemented from java::lang::Comparable. |
|
||||||||||||||||
|
Decodes a Accepts decimal, hexadecimal, and octal numbers given by the following grammar: <blockquote>
DecimalNumeral, HexDigits, and OctalDigits are defined in 3.10.1 of the Java Language Specification.
The sequence of characters following an (optional) negative sign and/or radix specifier ("
|
|
||||||||||||
|
Returns the value of this
Reimplemented from java::lang::Number. |
|
||||||||||||||||
|
Compares this object to the specified object.
The result is
Reimplemented from java::lang::Object. |
|
||||||||||||
|
Returns the value of this
Reimplemented from java::lang::Number. |
|
||||||||||||
|
Returns a hash code for this
Reimplemented from java::lang::Object. |
|
||||||||||||
|
Returns the value of this
Reimplemented from java::lang::Number. |
|
||||||||||||
|
Returns the value of this
Reimplemented from java::lang::Number. |
|
||||||||||||||||||||
|
Parses the string argument as a signed
The characters in the string must all be digits, of the specified radix (as determined by whether returns a nonnegative value) except that the first character may be an ASCII minus sign
An exception of type
|
|
||||||||||||||||
|
Parses the string argument as a signed decimal
The characters in the string must all be decimal digits, except that the first character may be an ASCII minus sign
|
|
||||||||||||
|
Returns the value of this
Reimplemented from java::lang::Number. |
|
||||||||||||||||
|
Returns a new The radix is assumed to be 10.
|
|
||||||||||||
|
Returns a
The value is converted to signed decimal representation and returned as a string, exactly as if the
Reimplemented from java::lang::Object. |
|
||||||||||||||||||||
|
Returns a
The first argument is interpreted as representing a signed
In other words, this method returns a
<blockquote>
|
|
||||||||||||||||
|
Returns a
The argument is interpreted as representing a signed decimal
In other words, this method returns a
<blockquote>
|
1.4.1