public final class Byte extends Object
Modifier and Type | Field and Description |
---|---|
static byte |
MAX_VALUE
The maximum value a Byte can have.
|
static byte |
MIN_VALUE
The minimum value a Byte can have.
|
Constructor and Description |
---|
Byte(byte value)
Constructs a Byte object initialized to the specified byte value.
|
Modifier and Type | Method and Description |
---|---|
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 i)
Returns the object instance of i
|
public static final byte MAX_VALUE
public static final byte MIN_VALUE
public Byte(byte value)
public byte byteValue()
public boolean equals(Object obj)
public int hashCode()
public static byte parseByte(String s) throws NumberFormatException
NumberFormatException
public static byte parseByte(String s, int radix) throws NumberFormatException
NumberFormatException
public String toString()
public static Byte valueOf(byte i)
i
- the primitive