Methods Summary |
---|
public byte | byteValue()Returns the value of this Byte as a byte.
return value;
|
public boolean | equals(java.lang.Object obj)Compares this object to the specified object.
if (obj instanceof Byte) {
return value == ((Byte)obj).byteValue();
}
return false;
|
public int | hashCode()Returns a hashcode for this Byte.
return (int)value;
|
public static byte | parseByte(java.lang.String s)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.
return parseByte(s, 10);
|
public static byte | parseByte(java.lang.String s, int radix)Assuming the specified String represents a byte, returns
that byte's value. Throws an exception if the String cannot
be parsed as a byte.
int i = Integer.parseInt(s, radix);
if (i < MIN_VALUE || i > MAX_VALUE)
throw new NumberFormatException();
return (byte)i;
|
public java.lang.String | toString()Returns a String object representing this Byte's value.
return String.valueOf((int)value);
|