| java.lang.Object | |
| ↳ | java.lang.Byte |
The Byte class is the standard wrapper for byte values.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| byte | MAX_VALUE | The maximum value a Byte can have. | |||||||||
| byte | MIN_VALUE | The minimum value a Byte can have. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Byte(byte value)
Constructs a Byte object initialized to the specified byte value.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| byte |
byteValue()
Returns the value of this Byte as a byte.
| ||||||||||
| boolean |
equals(Object obj)
Compares this object to the specified object.
| ||||||||||
| int |
hashCode()
Returns a hashcode for this Byte.
| ||||||||||
| static byte |
parseByte(String s)
Assuming the specified String represents a byte, returns that byte's value.
| ||||||||||
| static byte |
parseByte(String s, int radix)
Assuming the specified String represents a byte, returns that byte's value.
| ||||||||||
| String |
toString()
Returns a String object representing this Byte's value.
| ||||||||||
| static Byte | valueOf(byte b) | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
The maximum value a Byte can have.
The minimum value a Byte can have.
Constructs a Byte object initialized to the specified byte value.
| value | the initial value of the Byte |
|---|
Returns the value of this Byte as a byte.
Compares this object to the specified object.
| obj | the object to compare with |
|---|
Returns a hashcode for this Byte.
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.
| s | the String containing the byte |
|---|
| NumberFormatException | If the string does not contain a parsable byte. |
|---|
Assuming the specified String represents a byte, returns that byte's value. Throws an exception if the String cannot be parsed as a byte.
| s | the String containing the byte |
|---|---|
| radix | the radix to be used |
| NumberFormatException | If the String does not contain a parsable byte. |
|---|
Returns a String object representing this Byte's value.