mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
40 lines
661 B
Java
40 lines
661 B
Java
package java.lang;
|
|
|
|
public final class Integer extends Number {
|
|
public static final Class TYPE = Class.forCanonicalName("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;
|
|
}
|
|
|
|
public static int parseInt(String s, int radix) {
|
|
return (int) Long.parseLong(s, radix);
|
|
}
|
|
}
|