Mercurial > projects > dwt2
view base/src/java/lang/Double.d @ 112:9f4c18c268b2
Update to compile and execute with dmd 2.052.
author | kntroh |
---|---|
date | Wed, 16 Mar 2011 21:53:53 +0900 |
parents | 9e0ab372d5d8 |
children | 536e43f63c81 |
line wrap: on
line source
module java.lang.Double; import java.lang.util; import java.lang.Number; import java.lang.Class; class Double : Number { public static double POSITIVE_INFINITY = double.infinity; public static double NEGATIVE_INFINITY = -double.infinity; public static double MAX_VALUE = double.max; public static double MIN_VALUE = double.min; private double value; this( double value ){ super(); this.value = value; } this( String str ){ implMissing( __FILE__, __LINE__ ); super(); } public static String toString( double value ){ implMissing( __FILE__, __LINE__ ); return null; } public static double parseDouble(String s){ implMissing( __FILE__, __LINE__ ); return 0.0; } private static Class TYPE_; public static Class TYPE(){ if( TYPE_ is null ){ TYPE_ = Class.fromType!(double); } return TYPE_; } public byte byteValue(){ return cast(byte)value; } public short shortValue(){ return cast(short)value; } public int intValue(){ return cast(int)value; } public long longValue(){ return cast(long)value; } public float floatValue(){ return cast(float)value; } public double doubleValue(){ return cast(double)value; } }