| java.lang.Object java.lang.Byte
Byte | final public class Byte (Code) | | The Byte class is the standard wrapper for byte values.
version: 12/17/01 (CLDC 1.1) since: JDK1.1, CLDC 1.0 |
Field Summary | |
final public static byte | MAX_VALUE The maximum value a Byte can have. | final public static byte | MIN_VALUE The minimum value a Byte can have. |
Constructor Summary | |
public | Byte(byte value) Constructs a Byte object initialized to the specified byte value. |
Method Summary | |
public byte | byteValue() Returns the value of this Byte as a byte. | public boolean | equals(Object obj) Compares this object to the specified object. | public int | hashCode() Returns a hashcode for this Byte. | public static byte | parseByte(String s) Assuming the specified String represents a byte, returns
that byte's value. | public static byte | parseByte(String s, int radix) Assuming the specified String represents a byte, returns
that byte's value. | public String | toString() Returns a String object representing this Byte's value. |
MAX_VALUE | final public static byte MAX_VALUE(Code) | | The maximum value a Byte can have.
|
MIN_VALUE | final public static byte MIN_VALUE(Code) | | The minimum value a Byte can have.
|
Byte | public Byte(byte value)(Code) | | Constructs a Byte object initialized to the specified byte value.
Parameters: value - the initial value of the Byte |
byteValue | public byte byteValue()(Code) | | Returns the value of this Byte as a byte.
the value of this Byte as a byte. |
equals | public boolean equals(Object obj)(Code) | | Compares this object to the specified object.
Parameters: obj - the object to compare with true if the objects are the same; false otherwise. |
hashCode | public int hashCode()(Code) | | Returns a hashcode for this Byte.
|
parseByte | public static byte parseByte(String s) throws NumberFormatException(Code) | | Assuming the specified String represents a byte, returns
that byte's value. Throws an exception if the String cannot
be parsed as a byte. The radix is assumed to be 10.
Parameters: s - the String containing the byte the parsed value of the byte exception: NumberFormatException - If the string does notcontain a parsable byte. |
parseByte | public static byte parseByte(String s, int radix) throws NumberFormatException(Code) | | Assuming the specified String represents a byte, returns
that byte's value. Throws an exception if the String cannot
be parsed as a byte.
Parameters: s - the String containing the byte Parameters: radix - the radix to be used the parsed value of the byte exception: NumberFormatException - If the String does notcontain a parsable byte. |
toString | public String toString()(Code) | | Returns a String object representing this Byte's value.
|
|
|