Share via


Byte Members

Class Overview | This Package | All Packages

Fields

Name Description
MAX_VALUE The maximum value a Byte can have.
MIN_VALUE The minimum value a Byte can have.
TYPE The Class object representing the primitive type byte.

Constructors

Name Description
Byte(byte) Constructs a Byte object initialized to the specified byte value.
Byte(String) Constructs a Byte object initialized to the value specified by the String parameter.

Methods

Name Description
byteValue() Returns the value of this Byte as a byte.
decode(String) Decodes a String into a Byte.
doubleValue() Returns the value of this Byte as a double.
equals(Object) Compares this object to the specified object.
floatValue() Returns the value of this Byte as a float.
hashCode() Returns a hashcode for this Byte.
intValue() Returns the value of this Byte as an int.
longValue() Returns the value of this Byte as a long.
parseByte(String) Assuming the specified String represents a byte, returns that byte's value.
parseByte(String, int) Assuming the specified String represents a byte, returns that byte's value.
shortValue() Returns the value of this Byte as a short.
toString() Returns a String object representing this Byte's value.
toString(byte) Returns a new String object representing the specified Byte.
valueOf(String) Assuming the specified String represents a byte, returns a new Byte object initialized to that value.
valueOf(String, int) Assuming the specified String represents a byte, returns a new Byte object initialized to that value.