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:uri"; | 4 import "dart:uri"; |
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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 } | 289 } |
290 | 290 |
291 void clear() { | 291 void clear() { |
292 elements.clear(); | 292 elements.clear(); |
293 } | 293 } |
294 | 294 |
295 void remove(Object element) { | 295 void remove(Object element) { |
296 return elements.remove(element); | 296 return elements.remove(element); |
297 } | 297 } |
298 | 298 |
| 299 void insert(int index, E value) { |
| 300 elements.insert(index, value); |
| 301 } |
| 302 |
299 E removeAt(int index) { | 303 E removeAt(int index) { |
300 return elements.removeAt(index); | 304 return elements.removeAt(index); |
301 } | 305 } |
302 | 306 |
303 E removeLast() { | 307 E removeLast() { |
304 return elements.removeLast(); | 308 return elements.removeLast(); |
305 } | 309 } |
306 | 310 |
307 Iterable<E> get reversed => elements.reversed; | 311 Iterable<E> get reversed => elements.reversed; |
308 | 312 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 } | 421 } |
418 } else if (sb.length > newLength) { | 422 } else if (sb.length > newLength) { |
419 var s = sb.toString().substring(0, newLength); | 423 var s = sb.toString().substring(0, newLength); |
420 sb = new StringBuffer(s); | 424 sb = new StringBuffer(s); |
421 } | 425 } |
422 } | 426 } |
423 void clear() { | 427 void clear() { |
424 sb = new StringBuffer(); | 428 sb = new StringBuffer(); |
425 } | 429 } |
426 } | 430 } |
OLD | NEW |