| 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:collection" show ListBase; | 4 import "dart:collection" show ListBase; |
| 5 | 5 |
| 6 class JavaSystem { | 6 class JavaSystem { |
| 7 static int currentTimeMillis() { | 7 static int currentTimeMillis() { |
| 8 return (new DateTime.now()).millisecondsSinceEpoch; | 8 return (new DateTime.now()).millisecondsSinceEpoch; |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 return true; | 27 return true; |
| 28 } | 28 } |
| 29 String oTypeName = o.runtimeType.toString(); | 29 String oTypeName = o.runtimeType.toString(); |
| 30 String tTypeName = t.toString(); | 30 String tTypeName = t.toString(); |
| 31 if (oTypeName == tTypeName) { | 31 if (oTypeName == tTypeName) { |
| 32 return true; | 32 return true; |
| 33 } | 33 } |
| 34 if (oTypeName.startsWith("HashMap") && tTypeName == "Map") { | 34 if (oTypeName.startsWith("HashMap") && tTypeName == "Map") { |
| 35 return true; | 35 return true; |
| 36 } | 36 } |
| 37 if (oTypeName.startsWith("LinkedHashMap") && tTypeName == "Map") { |
| 38 return true; |
| 39 } |
| 37 if (oTypeName.startsWith("List") && tTypeName == "List") { | 40 if (oTypeName.startsWith("List") && tTypeName == "List") { |
| 38 return true; | 41 return true; |
| 39 } | 42 } |
| 40 // Dart Analysis Engine specific | 43 // Dart Analysis Engine specific |
| 41 if (oTypeName == "${tTypeName}Impl") { | 44 if (oTypeName == "${tTypeName}Impl") { |
| 42 return true; | 45 return true; |
| 43 } | 46 } |
| 44 if (tTypeName == "MethodElement") { | 47 if (tTypeName == "MethodElement") { |
| 45 if (oTypeName == "MethodMember") { | 48 if (oTypeName == "MethodMember") { |
| 46 return true; | 49 return true; |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 } | 532 } |
| 530 void clear() { | 533 void clear() { |
| 531 sb = new StringBuffer(); | 534 sb = new StringBuffer(); |
| 532 } | 535 } |
| 533 } | 536 } |
| 534 | 537 |
| 535 abstract class Enum<E> implements Comparable<E> { | 538 abstract class Enum<E> implements Comparable<E> { |
| 536 int get ordinal; | 539 int get ordinal; |
| 537 String get name; | 540 String get name; |
| 538 } | 541 } |
| OLD | NEW |