Mercurial > projects > dwt2
view base/src/java/lang/Double.d @ 88:9e0ab372d5d8
Revert from TypeInfo/ClassInfo to java.lang.Class
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 19 Apr 2009 11:10:09 +0200 |
parents | fcf926c91ca4 |
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; } }