| 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 | 4 |
| 5 final Stopwatch nanoTimeStopwatch = new Stopwatch(); | 5 final Stopwatch nanoTimeStopwatch = new Stopwatch(); |
| 6 | 6 |
| 7 class JavaSystem { | 7 class JavaSystem { |
| 8 static int currentTimeMillis() { | 8 static int currentTimeMillis() { |
| 9 return (new DateTime.now()).millisecondsSinceEpoch; | 9 return (new DateTime.now()).millisecondsSinceEpoch; |
| 10 } | 10 } |
| (...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 String toString() => name; | 504 String toString() => name; |
| 505 int compareTo(E other) => ordinal - other.ordinal; | 505 int compareTo(E other) => ordinal - other.ordinal; |
| 506 } | 506 } |
| 507 | 507 |
| 508 class JavaPatternMatcher { | 508 class JavaPatternMatcher { |
| 509 Iterator<Match> _matches; | 509 Iterator<Match> _matches; |
| 510 Match _match; | 510 Match _match; |
| 511 JavaPatternMatcher(RegExp re, String input) { | 511 JavaPatternMatcher(RegExp re, String input) { |
| 512 _matches = re.allMatches(input).iterator; | 512 _matches = re.allMatches(input).iterator; |
| 513 } | 513 } |
| 514 bool matches() => find(); |
| 514 bool find() { | 515 bool find() { |
| 515 if (!_matches.moveNext()) { | 516 if (!_matches.moveNext()) { |
| 516 return false; | 517 return false; |
| 517 } | 518 } |
| 518 _match = _matches.current; | 519 _match = _matches.current; |
| 519 return true; | 520 return true; |
| 520 } | 521 } |
| 521 String group(int i) => _match[i]; | 522 String group(int i) => _match[i]; |
| 522 int start() => _match.start; | 523 int start() => _match.start; |
| 523 int end() => _match.end; | 524 int end() => _match.end; |
| 524 } | 525 } |
| OLD | NEW |