corda/classpath/java/lang/Integer.java

40 lines
652 B
Java
Raw Normal View History

package java.lang;
public final class Integer extends Number {
2007-07-27 02:39:53 +00:00
public static final Class TYPE = Class.forName("I");
private final int value;
public Integer(int value) {
this.value = value;
}
public byte byteValue() {
return (byte) value;
}
public short shortValue() {
return (short) 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-27 23:56:19 +00:00
public static int parseInt(String s, int radix) {
return (int) Long.parseLong(s, radix);
}
}