java.lang
Class Byte

java.lang.Object
  extended by java.lang.Number
      extended by java.lang.Byte

public final class Byte
extends Number

Wrapper class for bytes.

Author:
Sven Köhler

Field Summary
static byte MAX_VALUE
           
static byte MIN_VALUE
           
static int SIZE
           
static Class<?> TYPE
           
 
Constructor Summary
Byte(byte value)
           
Byte(String s)
           
 
Method Summary
 byte byteValue()
          Return the byte value of this Number.
 int compareTo(Object o)
           
 double doubleValue()
          Return the double value of this Number.
 boolean equals(Object o)
           
 float floatValue()
          Return the float value of this Number.
 int hashCode()
           
 int intValue()
          Return the int value of this Number.
 long longValue()
          Return the long value of this Number.
static byte parseByte(String s)
           
static byte parseByte(String s, int radix)
           
 short shortValue()
          Return the short value of this Number.
 String toString()
           
static String toString(byte b)
           
static Byte valueOf(byte b)
           
static Byte valueOf(String s)
           
static Byte valueOf(String s, 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

SIZE

public static final int SIZE
See Also:
Constant Field Values

TYPE

public static final Class<?> TYPE
Constructor Detail

Byte

public Byte(byte value)

Byte

public Byte(String s)
Method Detail

byteValue

public byte byteValue()
Description copied from class: Number
Return the byte value of this Number.

Overrides:
byteValue in class Number
Returns:
the byte value

compareTo

public int compareTo(Object o)

doubleValue

public double doubleValue()
Description copied from class: Number
Return the double value of this Number.

Specified by:
doubleValue in class Number
Returns:
the double value

equals

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

floatValue

public float floatValue()
Description copied from class: Number
Return the float value of this Number.

Specified by:
floatValue in class Number
Returns:
the float value

hashCode

public int hashCode()
Overrides:
hashCode in class Object

intValue

public int intValue()
Description copied from class: Number
Return the int value of this Number.

Specified by:
intValue in class Number
Returns:
the int value

longValue

public long longValue()
Description copied from class: Number
Return the long value of this Number.

Specified by:
longValue in class Number
Returns:
the long value

parseByte

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

parseByte

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

shortValue

public short shortValue()
Description copied from class: Number
Return the short value of this Number.

Overrides:
shortValue in class Number
Returns:
the short value

toString

public String toString()
Overrides:
toString in class Object

toString

public static String toString(byte b)

valueOf

public static Byte valueOf(byte b)

valueOf

public static Byte valueOf(String s)

valueOf

public static Byte valueOf(String s,
                           int radix)