| OLD | NEW |
| 1 library java.engine; | 1 library java.engine; |
| 2 | 2 |
| 3 class StringUtilities { | 3 class StringUtilities { |
| 4 static const String EMPTY = ''; | 4 static const String EMPTY = ''; |
| 5 static const List<String> EMPTY_ARRAY = const <String> []; | 5 static const List<String> EMPTY_ARRAY = const <String> []; |
| 6 static String intern(String s) => s; | 6 static String intern(String s) => s; |
| 7 static String substringBefore(String str, String separator) { | 7 static String substringBefore(String str, String separator) { |
| 8 if (str == null || str.isEmpty) { | 8 if (str == null || str.isEmpty) { |
| 9 return str; | 9 return str; |
| 10 } | 10 } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 } | 37 } |
| 38 } | 38 } |
| 39 | 39 |
| 40 class UUID { | 40 class UUID { |
| 41 static int __nextId = 0; | 41 static int __nextId = 0; |
| 42 final String id; | 42 final String id; |
| 43 UUID(this.id); | 43 UUID(this.id); |
| 44 String toString() => id; | 44 String toString() => id; |
| 45 static UUID randomUUID() => new UUID((__nextId).toString()); | 45 static UUID randomUUID() => new UUID((__nextId).toString()); |
| 46 } | 46 } |
| OLD | NEW |