java.lang
Class Byte

java.lang.Object
  extended by java.lang.Number
      extended by java.lang.Byte
All Implemented Interfaces:
Serializable, Comparable


public final class Byte
extends Number
implements Comparable

Standard wrapper for byte, as specified by the standard Java API.

Compliance: CLDC: 1.0 complete

Compliance: J2SE: 1.4 incomplete

See Also:
Serialized Form

Field Summary
static byte MAX_VALUE
           
static byte MIN_VALUE
           
static Class TYPE
           
 
Constructor Summary
Byte(byte value)
           
Byte(String string)
           
 
Method Summary
 byte byteValue()
           
 int compareTo(Byte anotherByte)
           
 int compareTo(Object object)
           
static Byte decode(String nm)
           
 double doubleValue()
           
 boolean equals(Object object)
           
 float floatValue()
           
 int hashCode()
           
 int intValue()
           
 long longValue()
           
static byte parseByte(String s)
           
static byte parseByte(String s, int radix)
           
 short shortValue()
           
 String toString()
           
static String toString(byte b)
           
static Byte valueOf(String string)
           
static Byte valueOf(String string, int radix)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_VALUE

public static final byte MAX_VALUE
See Also:
Constant Field Values

MIN_VALUE

public static final byte MIN_VALUE
See Also:
Constant Field Values

TYPE

public static final Class TYPE
Constructor Detail

Byte

public Byte(byte value)

Byte

public Byte(String string)
     throws NumberFormatException
Throws:
NumberFormatException
Method Detail

toString

public static String toString(byte b)

parseByte

public static byte parseByte(String s)
                      throws NumberFormatException
Throws:
NumberFormatException

parseByte

public static byte parseByte(String s,
                             int radix)
                      throws NumberFormatException
Throws:
NumberFormatException

valueOf

public static Byte valueOf(String string,
                           int radix)
                    throws NumberFormatException
Throws:
NumberFormatException

valueOf

public static Byte valueOf(String string)
                    throws NumberFormatException
Throws:
NumberFormatException

decode

public static Byte decode(String nm)
                   throws NumberFormatException
Throws:
NumberFormatException

byteValue

public byte byteValue()
Specified by:
byteValue in class Number

shortValue

public short shortValue()
Specified by:
shortValue in class Number

intValue

public int intValue()
Specified by:
intValue in class Number

longValue

public long longValue()
Specified by:
longValue in class Number

floatValue

public float floatValue()
Specified by:
floatValue in class Number

doubleValue

public double doubleValue()
Specified by:
doubleValue in class Number

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object object)
Overrides:
equals in class Object

compareTo

public int compareTo(Byte anotherByte)

compareTo

public int compareTo(Object object)
Specified by:
compareTo in interface Comparable