Byte class wraps a value of primitive type byte in an object.
More...
#include <java_lang_Byte.h>
Inheritance diagram for java::lang::Byte:


Public Types | |
| enum | { xmogDefaultFlags = xmog_base::GLOBAL, xmogMajorVersion = 3, xmogMinorVersion = 2, xmogPatchVersion = 9, xmogBuildNumber = 2047 } |
|
typedef ::xmog_java_array_template< ::java::lang::Byte > | array1D |
|
typedef ::xmog_java_array_template< ::xmog_java_array_template< ::java::lang::Byte > > | array2D |
Public Member Functions | |
| Byte (const ::java::lang::String &s,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) | |
Constructs a newly allocated Byte object that represents the byte value indicated by the String parameter. | |
| Byte (jbyte value,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) | |
Constructs a newly allocated Byte object that represents the specified byte value. | |
| jbyte | byteValue (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns the value of this Byte as a byte. | |
| jint | compareTo (const ::java::lang::Byte &anotherByte,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Compares two Byte objects numerically. | |
| jint | compareTo (const ::java::lang::Object &o,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Compares this Byte object to another object. | |
| jdouble | doubleValue (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns the value of this Byte 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 Byte as a float. | |
| jint | hashCode (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns a hash code for this Byte. | |
| jint | intValue (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns the value of this Byte as an int. | |
| jlong | longValue (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns the value of this Byte as a long. | |
| jshort | shortValue (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns the value of this Byte as a short. | |
| ::java::lang::String | toString (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns a String object representing this Byte's value. | |
Static Public Member Functions | |
| ::java::lang::Byte | decode (const ::java::lang::String &nm,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Decodes a String into a Byte. | |
| static jbyte | parseByte (const ::java::lang::String &s, jint radix,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Parses the string argument as a signed byte in the radix specified by the second argument. | |
| static jbyte | parseByte (const ::java::lang::String &s,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Parses the string argument as a signed decimal byte. | |
| ::java::lang::String | toString (jbyte b,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns a new String object representing the specified byte. | |
| ::java::lang::Byte | valueOf (const ::java::lang::String &s, jint radix,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns a Byte object holding the value extracted from the specified String when parsed with the radix given by the second argument. | |
| ::java::lang::Byte | valueOf (const ::java::lang::String &s,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns a Byte object holding the value given by the specified String. | |
Static Public Attributes | |
| static xmog_byte | MAX_VALUE |
A constant holding the maximum value a byte can have, 27-1. | |
| static xmog_byte | MIN_VALUE |
A constant holding the minimum value a byte can have, -27. | |
| ::java::lang::Class | TYPE |
The Class instance representing the primitive type byte. | |
Byte class wraps a value of primitive type byte in an object.
An object of type Byte contains a single field whose type is byte.
In addition, this class provides several methods for converting a byte to a String and a String to a byte, as well as other constants and methods useful when dealing with a byte.
|
||||||||||||||||
|
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. |
|
||||||||||||||||
|
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