Monday 11 March 2013

java.lang Byte


java.lang
Byte

Declaration
public final class Byte
java.lang.Object
|
+--java.lang.Byte
Description
The Byte class is the standard wrapper for byte values.


Fields
static byte MAX_VALUE
static byte MIN_VALUE
Constructors
Byte(byte value)
Methods
byte byteValue()
boolean equals(Object obj)
int hashCode()
static byte parseByte(String s)
static byte parseByte(String s, int radix)
String toString()


Methods inherited from class Object
getClass(), notify(), notifyAll(), wait(), wait(), wait()


Fields
MIN_VALUE
Declaration:
public static final byte MIN_VALUE


MAX_VALUE

Description:
The minimum value a Byte can have.
MAX_VALUE
Declaration:
public static final byte MAX_VALUE
Description:
The maximum value a Byte can have.
Constructors
Byte(byte)
Declaration:
public Byte(byte value)
Description:
Constructs a Byte object initialized to the specified byte value.
Parameters:
value - the initial value of the Byte
Methods
parseByte(String)
Declaration:
public static byte parseByte(java.lang.String s)
throws NumberFormatException
Description:
Assuming the specified String represents a byte, returns that byte’s value. Throws an exception if the String
cannot be parsed as a byte. The radix is assumed to be 10.
Parameters:
s - the String containing the byte
Returns: the parsed value of the byte
Throws:
NumberFormatException - If the string does not contain a parsable byte.
parseByte(String, int)
Declaration:
public static byte parseByte(java.lang.String s, int radix)
throws NumberFormatException
Description:
Assuming the specified String represents a byte, returns that byte’s value. Throws an exception if the String
cannot be parsed as a byte.


Parameters:
s - the String containing the byte
radix - the radix to be used
Returns: the parsed value of the byte
Throws:
NumberFormatException - If the String does not contain a parsable byte.
byteValue()
Declaration:
public byte byteValue()
Description:
Returns the value of this Byte as a byte.
Returns: the value of this Byte as a byte.
toString()
Declaration:
public java.lang.String toString()
Description:
Returns a String object representing this Byte’s value.
Overrides: toString in class Object
Returns: a string representation of the object.
hashCode()
Declaration:
public int hashCode()
Description:
Returns a hashcode for this Byte.
Overrides: hashCode in class Object
Returns: a hash code value for this object.
equals(Object)
Declaration:
public boolean equals(java.lang.Object obj)
Description:
Compares this object to the specified object.
Overrides: equals in class Object
Parameters:
obj - the object to compare with
Returns: true if the objects are the same; false otherwise.







No comments:

Post a Comment