Name
java.lang.Byte
Synopsis
This class is a smaller counterpart to the J2SE
Byte
class. It provides an object wrapper around
the byte
primitive data type. The class provides
minimum and maximum constant values that can be used to test the
legal size of the byte. The value of the object’s byte is
accessed using the byteValue()
method. In
addition, the two parseByte()
methods can take a
number from a specified string or an optionally specified radix and
return it as a byte.
public final classByte
{ // constants public static final byteMIN_VALUE
; public static final byteMAX_VALUE
; // public constructor publicByte
(byte value); // static methods public static byteparseByte
(String s) throws NumberFormatException; public static byteparseByte
(String s, int radix) throws NumberFormatException; // public instance methods public bytebyteValue
(); public booleanequals
(Object obj); public inthashCode
(); public StringtoString
(); }
Get Wireless Java now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.