Mercurial > projects > dwt2
comparison base/src/java/lang/Long.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 | 5d5bd660917f |
comparison
equal
deleted
inserted
replaced
87:8594250b1d1c | 88:9e0ab372d5d8 |
---|---|
1 module java.lang.Long; | 1 module java.lang.Long; |
2 | 2 |
3 import java.lang.util; | 3 import java.lang.util; |
4 import java.lang.Number; | 4 import java.lang.Number; |
5 import java.lang.Class; | |
5 | 6 |
6 class Long : Number { | 7 class Long : Number { |
7 public static const long MIN_VALUE = long.min; | 8 public static const long MIN_VALUE = long.min; |
8 public static const long MAX_VALUE = long.max; | 9 public static const long MAX_VALUE = long.max; |
9 private long value; | 10 private long value; |
44 } | 45 } |
45 public static String toString( double value ){ | 46 public static String toString( double value ){ |
46 implMissing( __FILE__, __LINE__ ); | 47 implMissing( __FILE__, __LINE__ ); |
47 return null; | 48 return null; |
48 } | 49 } |
49 private static TypeInfo TYPE_; | 50 private static Class TYPE_; |
50 public static TypeInfo TYPE(){ | 51 public static Class TYPE(){ |
51 if( TYPE_ is null ){ | 52 if( TYPE_ is null ){ |
52 TYPE_ = typeid(long); | 53 TYPE_ = Class.fromType!(long); |
53 } | 54 } |
54 return TYPE_; | 55 return TYPE_; |
55 } | 56 } |
56 | 57 |
57 } | 58 } |