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:io"; | 4 import "dart:io"; |
5 import "dart:uri"; | 5 import "dart:uri"; |
6 | 6 |
7 class System { | 7 class System { |
8 static final String pathSeparator = Platform.pathSeparator; | 8 static final String pathSeparator = Platform.pathSeparator; |
9 static final int pathSeparatorChar = Platform.pathSeparator.codeUnitAt(0); | 9 static final int pathSeparatorChar = Platform.pathSeparator.codeUnitAt(0); |
10 | 10 |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 } | 296 } |
297 | 297 |
298 E removeAt(int index) { | 298 E removeAt(int index) { |
299 return elements.removeAt(index); | 299 return elements.removeAt(index); |
300 } | 300 } |
301 | 301 |
302 E removeLast() { | 302 E removeLast() { |
303 return elements.removeLast(); | 303 return elements.removeLast(); |
304 } | 304 } |
305 | 305 |
306 Iterable<E> get reversed => elements.reversed; | 306 List<E> get reversed => elements.reversed; |
307 | 307 |
308 List<E> getRange(int start, int length) { | 308 List<E> getRange(int start, int length) { |
309 return elements.getRange(start, length); | 309 return elements.getRange(start, length); |
310 } | 310 } |
311 | 311 |
312 void setRange(int start, int length, List<E> from, [int startFrom]) { | 312 void setRange(int start, int length, List<E> from, [int startFrom]) { |
313 elements.setRange(start, length, from, startFrom); | 313 elements.setRange(start, length, from, startFrom); |
314 } | 314 } |
315 | 315 |
316 void removeRange(int start, int length) { | 316 void removeRange(int start, int length) { |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 } | 398 } |
399 | 399 |
400 File getAbsoluteFile(File file) { | 400 File getAbsoluteFile(File file) { |
401 var path = file.fullPathSync(); | 401 var path = file.fullPathSync(); |
402 return new File(path); | 402 return new File(path); |
403 } | 403 } |
404 | 404 |
405 Uri newUriFromFile(File file) { | 405 Uri newUriFromFile(File file) { |
406 return new Uri.fromComponents(path: file.fullPathSync()); | 406 return new Uri.fromComponents(path: file.fullPathSync()); |
407 } | 407 } |
OLD | NEW |