Number

 

//Number是一个抽象类,而且是BigDecimal,BigInteger,Byte,Double,Integer等的
//超类, 这个类必须提供转化为数值的方法
public abstract class Number implements java.io.Serializable {
	
	public abstract int intValue();

	public abstract long longValue();

	public abstract float floatValue();

	public abstract double doubleValue();

	public byte byteValue() {
		return (byte) intValue();
	}

	public short shortValue() {
		return (short) intValue();
	}

	private static final long serialVersionUID = -8742448824652078965L;
}

你可能感兴趣的:(number)