| OLD | NEW |
| 1 library java.core; | 1 library java.core; |
| 2 | 2 |
| 3 const int LONG_MAX_VALUE = 0x7fffffffffffffff; | 3 const int LONG_MAX_VALUE = 0x7fffffffffffffff; |
| 4 | 4 |
| 5 final Stopwatch nanoTimeStopwatch = new Stopwatch(); | 5 final Stopwatch nanoTimeStopwatch = new Stopwatch(); |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Inserts the given arguments into [pattern]. | 8 * Inserts the given arguments into [pattern]. |
| 9 * | 9 * |
| 10 * format('Hello, {0}!', 'John') = 'Hello, John!' | 10 * format('Hello, {0}!', 'John') = 'Hello, John!' |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 if (fromIndex > target.length) return -1; | 272 if (fromIndex > target.length) return -1; |
| 273 if (fromIndex < 0) fromIndex = 0; | 273 if (fromIndex < 0) fromIndex = 0; |
| 274 return target.lastIndexOf(str, fromIndex); | 274 return target.lastIndexOf(str, fromIndex); |
| 275 } | 275 } |
| 276 static bool startsWithBefore(String s, String other, int start) { | 276 static bool startsWithBefore(String s, String other, int start) { |
| 277 return s.indexOf(other, start) != -1; | 277 return s.indexOf(other, start) != -1; |
| 278 } | 278 } |
| 279 } | 279 } |
| 280 | 280 |
| 281 class JavaSystem { | 281 class JavaSystem { |
| 282 @deprecated |
| 282 static void arraycopy( | 283 static void arraycopy( |
| 283 List src, int srcPos, List dest, int destPos, int length) { | 284 List src, int srcPos, List dest, int destPos, int length) { |
| 284 for (int i = 0; i < length; i++) { | 285 for (int i = 0; i < length; i++) { |
| 285 dest[destPos + i] = src[srcPos + i]; | 286 dest[destPos + i] = src[srcPos + i]; |
| 286 } | 287 } |
| 287 } | 288 } |
| 288 | 289 |
| 289 static int currentTimeMillis() { | 290 static int currentTimeMillis() { |
| 290 return (new DateTime.now()).millisecondsSinceEpoch; | 291 return (new DateTime.now()).millisecondsSinceEpoch; |
| 291 } | 292 } |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 | 429 |
| 429 class UnsupportedOperationException extends JavaException { | 430 class UnsupportedOperationException extends JavaException { |
| 430 UnsupportedOperationException([message = ""]) : super(message); | 431 UnsupportedOperationException([message = ""]) : super(message); |
| 431 } | 432 } |
| 432 | 433 |
| 433 class URISyntaxException implements Exception { | 434 class URISyntaxException implements Exception { |
| 434 final String message; | 435 final String message; |
| 435 URISyntaxException(this.message); | 436 URISyntaxException(this.message); |
| 436 String toString() => "URISyntaxException: $message"; | 437 String toString() => "URISyntaxException: $message"; |
| 437 } | 438 } |
| OLD | NEW |