| 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 import "dart:collection" show ListBase; | 5 import "dart:collection" show ListBase; |
| 6 | 6 |
| 7 class JavaSystem { | 7 class JavaSystem { |
| 8 static int currentTimeMillis() { | 8 static int currentTimeMillis() { |
| 9 return (new DateTime.now()).millisecondsSinceEpoch; | 9 return (new DateTime.now()).millisecondsSinceEpoch; |
| 10 } | 10 } |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 } | 304 } |
| 305 | 305 |
| 306 int lastIndexOf(E element, [int start]) { | 306 int lastIndexOf(E element, [int start]) { |
| 307 return elements.lastIndexOf(element, start); | 307 return elements.lastIndexOf(element, start); |
| 308 } | 308 } |
| 309 | 309 |
| 310 void clear() { | 310 void clear() { |
| 311 elements.clear(); | 311 elements.clear(); |
| 312 } | 312 } |
| 313 | 313 |
| 314 void remove(Object element) { | 314 bool remove(Object element) { |
| 315 return elements.remove(element); | 315 return elements.remove(element); |
| 316 } | 316 } |
| 317 | 317 |
| 318 E removeAt(int index) { | 318 E removeAt(int index) { |
| 319 return elements.removeAt(index); | 319 return elements.removeAt(index); |
| 320 } | 320 } |
| 321 | 321 |
| 322 E removeLast() { | 322 E removeLast() { |
| 323 return elements.removeLast(); | 323 return elements.removeLast(); |
| 324 } | 324 } |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 } | 440 } |
| 441 } else if (sb.length > newLength) { | 441 } else if (sb.length > newLength) { |
| 442 var s = sb.toString().substring(0, newLength); | 442 var s = sb.toString().substring(0, newLength); |
| 443 sb = new StringBuffer(s); | 443 sb = new StringBuffer(s); |
| 444 } | 444 } |
| 445 } | 445 } |
| 446 void clear() { | 446 void clear() { |
| 447 sb = new StringBuffer(); | 447 sb = new StringBuffer(); |
| 448 } | 448 } |
| 449 } | 449 } |
| OLD | NEW |