mirror of
https://github.com/quinton-ashley/java2js
synced 2024-12-29 10:11:54 +01:00
16 lines
376 B
JavaScript
Executable File
16 lines
376 B
JavaScript
Executable File
jre.imports['java.lang.Integer'].load = () => {
|
|
|
|
class Integer {}
|
|
Integer.parseInt = (d) => {
|
|
return parseInt(d);
|
|
}
|
|
Integer.compare = (a, b) => {
|
|
return a - b;
|
|
}
|
|
Integer.MAX_VALUE = Number.MAX_VALUE;
|
|
Integer.POSITIVE_INFINITY = Number.POSITIVE_INFINITY;
|
|
Integer.NEGATIVE_INFINITY = Number.NEGATIVE_INFINITY;
|
|
Integer.NaN = NaN;
|
|
jre.java.lang.Integer = Integer;
|
|
}
|