OLD | NEW |
1 library java.core; | 1 library java.core; |
2 | 2 |
3 import "dart:math" as math; | 3 import "dart:math" as math; |
4 import "dart:uri"; | |
5 import "dart:collection" show ListBase; | 4 import "dart:collection" show ListBase; |
6 | 5 |
7 class JavaSystem { | 6 class JavaSystem { |
8 static int currentTimeMillis() { | 7 static int currentTimeMillis() { |
9 return (new DateTime.now()).millisecondsSinceEpoch; | 8 return (new DateTime.now()).millisecondsSinceEpoch; |
10 } | 9 } |
11 | 10 |
12 static void arraycopy(List src, int srcPos, List dest, int destPos, int length
) { | 11 static void arraycopy(List src, int srcPos, List dest, int destPos, int length
) { |
13 for (int i = 0; i < length; i++) { | 12 for (int i = 0; i < length; i++) { |
14 dest[destPos + i] = src[srcPos + i]; | 13 dest[destPos + i] = src[srcPos + i]; |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 } | 480 } |
482 } else if (sb.length > newLength) { | 481 } else if (sb.length > newLength) { |
483 var s = sb.toString().substring(0, newLength); | 482 var s = sb.toString().substring(0, newLength); |
484 sb = new StringBuffer(s); | 483 sb = new StringBuffer(s); |
485 } | 484 } |
486 } | 485 } |
487 void clear() { | 486 void clear() { |
488 sb = new StringBuffer(); | 487 sb = new StringBuffer(); |
489 } | 488 } |
490 } | 489 } |
OLD | NEW |