| OLD | NEW |
| 1 library java.engine; | 1 library java.engine; |
| 2 | 2 |
| 3 import 'interner.dart'; | 3 import 'interner.dart'; |
| 4 import 'java_core.dart'; | 4 import 'java_core.dart'; |
| 5 | 5 |
| 6 /** | 6 /** |
| 7 * A predicate is a one-argument function that returns a boolean value. | 7 * A predicate is a one-argument function that returns a boolean value. |
| 8 */ | 8 */ |
| 9 typedef bool Predicate<E>(E argument); | 9 typedef bool Predicate<E>(E argument); |
| 10 | 10 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 return ""; | 108 return ""; |
| 109 } | 109 } |
| 110 int index = fileName.lastIndexOf('.'); | 110 int index = fileName.lastIndexOf('.'); |
| 111 if (index >= 0) { | 111 if (index >= 0) { |
| 112 return fileName.substring(index + 1); | 112 return fileName.substring(index + 1); |
| 113 } | 113 } |
| 114 return ""; | 114 return ""; |
| 115 } | 115 } |
| 116 } | 116 } |
| 117 | 117 |
| 118 class ObjectUtilities { | |
| 119 static int combineHashCodes(int first, int second) => first * 31 + second; | |
| 120 } | |
| 121 | |
| 122 | 118 |
| 123 class StringUtilities { | 119 class StringUtilities { |
| 124 static const String EMPTY = ''; | 120 static const String EMPTY = ''; |
| 125 static const List<String> EMPTY_ARRAY = const <String>[]; | 121 static const List<String> EMPTY_ARRAY = const <String>[]; |
| 126 | 122 |
| 127 static Interner INTERNER = new NullInterner(); | 123 static Interner INTERNER = new NullInterner(); |
| 128 | 124 |
| 129 static endsWith3(String str, int c1, int c2, int c3) { | 125 static endsWith3(String str, int c1, int c2, int c3) { |
| 130 var length = str.length; | 126 var length = str.length; |
| 131 return length >= 3 && | 127 return length >= 3 && |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 } | 324 } |
| 329 | 325 |
| 330 | 326 |
| 331 class UUID { | 327 class UUID { |
| 332 static int __nextId = 0; | 328 static int __nextId = 0; |
| 333 final String id; | 329 final String id; |
| 334 UUID(this.id); | 330 UUID(this.id); |
| 335 String toString() => id; | 331 String toString() => id; |
| 336 static UUID randomUUID() => new UUID((__nextId).toString()); | 332 static UUID randomUUID() => new UUID((__nextId).toString()); |
| 337 } | 333 } |
| OLD | NEW |