2007-07-20 03:18:25 +00:00
|
|
|
package java.lang;
|
|
|
|
|
2007-07-21 17:50:26 +00:00
|
|
|
public final class Byte extends Number {
|
2007-07-20 03:18:25 +00:00
|
|
|
private final byte value;
|
|
|
|
|
|
|
|
public Byte(byte value) {
|
|
|
|
this.value = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
public byte byteValue() {
|
|
|
|
return value;
|
|
|
|
}
|
2007-07-21 17:50:26 +00:00
|
|
|
|
|
|
|
public short shortValue() {
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int intValue() {
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
|
|
|
public long longValue() {
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
|
|
|
public float floatValue() {
|
|
|
|
return (float) value;
|
|
|
|
}
|
|
|
|
|
|
|
|
public double doubleValue() {
|
|
|
|
return (double) value;
|
|
|
|
}
|
2007-07-20 03:18:25 +00:00
|
|
|
}
|