extern class java.lang.Byteextends Numberimplements Comparable<Null<Int8>>Available in java function new( param1 : Int8 ) : Void function compareTo( param1 : Null<Int8> ) : IntCompares two {@code Byte} objects numerically.
@param anotherByte the {@code Byte} to be compared. @return the value {@code 0} if this {@code Byte} is equal to the argument {@code Byte}; a value less than {@code 0} if this {@code Byte} is numerically less than the argument {@code Byte}; and a value greater than {@code 0} if this {@code Byte} is numerically greater than the argument {@code Byte} (signed comparison). @since 1.2
function equals( param1 : Dynamic ) : BoolCompares this object to the specified object. The result is {@code true} if and only if the argument is not {@code null} and is a {@code Byte} object that contains the same {@code byte} value as this object.
param obj       the object to compare with return {@code true} if the objects are the same; {@code false} otherwise.
function hashCode() : IntReturns a hash code for this {@code Byte}; equal to the result of invoking {@code intValue()}.
@return a hash code value for this {@code Byte}
function toString() : StringReturns a {@code String} object representing this {@code Byte}'s value. The value is converted to signed decimal representation and returned as a string, exactly as if the {@code byte} value were given as an argument to the {@link java.lang.Byte#toString(byte)} method.
@return a string representation of the value of this object in base&nbsp;10.
static var MAX_VALUE(default,null) : Int8 static var MIN_VALUE(default,null) : Int8 static var SIZE(default,null) : IntThe number of bits used to represent a {@code byte} value in two's complement binary form.
@since 1.5
static var TYPE : Class<Null<Int8>>The {@code Class} instance representing the primitive type {@code byte}. static function _toString( param1 : Int8 ) : StringReturns a new {@code String} object representing the specified {@code byte}. The radix is assumed to be 10.
@param b the {@code byte} to be converted @return the string representation of the specified {@code byte} @see java.lang.Integer#toString(int)
static function compare( param1 : Int8, param2 : Int8 ) : IntCompares two {@code byte} values numerically. The value returned is identical to what would be returned by: <pre> Byte.valueOf(x).compareTo(Byte.valueOf(y)) </pre>
@param x the first {@code byte} to compare @param y the second {@code byte} to compare @return the value {@code 0} if {@code x == y}; a value less than {@code 0} if {@code x < y}; and a value greater than {@code 0} if {@code x > y} @since 1.7
static function decode( param1 : String ) : Null<Int8>Decodes a {@code String} into a {@code Byte}. Accepts decimal, hexadecimal, and octal numbers given by the following grammar:
<blockquote> <dl> <dt><i>DecodableString:</i> <dd><i>Sign<sub>opt</sub> DecimalNumeral</i> <dd><i>Sign<sub>opt</sub></i> {@code 0x} <i>HexDigits</i> <dd><i>Sign<sub>opt</sub></i> {@code 0X} <i>HexDigits</i> <dd><i>Sign<sub>opt</sub></i> {@code #} <i>HexDigits</i> <dd><i>Sign<sub>opt</sub></i> {@code 0} <i>OctalDigits</i> <p> <dt><i>Sign:</i> <dd>{@code -} <dd>{@code +} </dl> </blockquote>
<i>DecimalNumeral</i>, <i>HexDigits</i>, and <i>OctalDigits</i> are as defined in section 3.10.1 of <cite>The Java&trade; Language Specification</cite>, except that underscores are not accepted between digits.
<p>The sequence of characters following an optional sign and/or radix specifier ("{@code 0x}", "{@code 0X}", "{@code #}", or leading zero) is parsed as by the {@code Byte.parseByte} method with the indicated radix (10, 16, or 8). This sequence of characters must represent a positive value or a {@link NumberFormatException} will be thrown. The result is negated if first character of the specified {@code String} is the minus sign. No whitespace characters are permitted in the {@code String}.
@param nm the {@code String} to decode. @return a {@code Byte} object holding the {@code byte} value represented by {@code nm} @throws NumberFormatException if the {@code String} does not contain a parsable {@code byte}. @see java.lang.Byte#parseByte(java.lang.String, int)
static function parseByte( param1 : String, param2 : Int ) : Int8 static function valueOf( param1 : Int8 ) : Null<Int8>Returns a {@code Byte} instance representing the specified {@code byte} value. If a new {@code Byte} instance is not required, this method should generally be used in preference to the constructor {@link #Byte(byte)}, as this method is likely to yield significantly better space and time performance since all byte values are cached.
param  b a byte value. return a {@code Byte} instance representing {@code b}. @since 1.5
version #18609, modified 2013-05-08 10:54:52 by api
0 comment