| OLD | NEW |
| 1 library java.engine; | 1 library java.engine; |
| 2 | 2 |
| 3 import 'java_core.dart'; | 3 import 'java_core.dart'; |
| 4 | 4 |
| 5 /** |
| 6 * A predicate is a one-argument function that returns a boolean value. |
| 7 */ |
| 8 typedef bool Predicate<E>(E argument); |
| 9 |
| 5 class StringUtilities { | 10 class StringUtilities { |
| 6 static const String EMPTY = ''; | 11 static const String EMPTY = ''; |
| 7 static const List<String> EMPTY_ARRAY = const <String>[]; | 12 static const List<String> EMPTY_ARRAY = const <String>[]; |
| 8 static String intern(String s) => s; | 13 static String intern(String s) => s; |
| 9 static bool isTagName(String s) { | 14 static bool isTagName(String s) { |
| 10 if (s == null || s.length == 0) { | 15 if (s == null || s.length == 0) { |
| 11 return false; | 16 return false; |
| 12 } | 17 } |
| 13 int sz = s.length; | 18 int sz = s.length; |
| 14 for (int i = 0; i < sz; i++) { | 19 for (int i = 0; i < sz; i++) { |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 static int combineHashCodes(int first, int second) => first * 31 + second; | 185 static int combineHashCodes(int first, int second) => first * 31 + second; |
| 181 } | 186 } |
| 182 | 187 |
| 183 class UUID { | 188 class UUID { |
| 184 static int __nextId = 0; | 189 static int __nextId = 0; |
| 185 final String id; | 190 final String id; |
| 186 UUID(this.id); | 191 UUID(this.id); |
| 187 String toString() => id; | 192 String toString() => id; |
| 188 static UUID randomUUID() => new UUID((__nextId).toString()); | 193 static UUID randomUUID() => new UUID((__nextId).toString()); |
| 189 } | 194 } |
| OLD | NEW |