| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 } else { | 169 } else { |
| 170 sb.writeCharCode(c); | 170 sb.writeCharCode(c); |
| 171 } | 171 } |
| 172 } | 172 } |
| 173 return sb.toString(); | 173 return sb.toString(); |
| 174 } | 174 } |
| 175 | 175 |
| 176 abstract class PrintWriter { | 176 abstract class PrintWriter { |
| 177 void print(x); | 177 void print(x); |
| 178 | 178 |
| 179 void println() { | 179 void newLine() { |
| 180 this.print('\n'); | 180 this.print('\n'); |
| 181 } | 181 } |
| 182 | 182 |
| 183 void printlnObject(String s) { | 183 void println(String s) { |
| 184 this.print(s); | 184 this.print(s); |
| 185 this.println(); | 185 this.newLine(); |
| 186 } | 186 } |
| 187 | 187 |
| 188 void printf(String fmt, List args) { | 188 void printf(String fmt, List args) { |
| 189 this.print(_printf(fmt, args)); | 189 this.print(_printf(fmt, args)); |
| 190 } | 190 } |
| 191 } | 191 } |
| 192 | 192 |
| 193 class PrintStringWriter extends PrintWriter { | 193 class PrintStringWriter extends PrintWriter { |
| 194 final StringBuffer _sb = new StringBuffer(); | 194 final StringBuffer _sb = new StringBuffer(); |
| 195 | 195 |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 } | 457 } |
| 458 } else if (sb.length > newLength) { | 458 } else if (sb.length > newLength) { |
| 459 var s = sb.toString().substring(0, newLength); | 459 var s = sb.toString().substring(0, newLength); |
| 460 sb = new StringBuffer(s); | 460 sb = new StringBuffer(s); |
| 461 } | 461 } |
| 462 } | 462 } |
| 463 void clear() { | 463 void clear() { |
| 464 sb = new StringBuffer(); | 464 sb = new StringBuffer(); |
| 465 } | 465 } |
| 466 } | 466 } |
| OLD | NEW |