1
0
mirror of https://github.com/quinton-ashley/java2js synced 2024-12-29 10:11:54 +01:00
java2js/jre/java/lang/Short.js
Quinton Ashley fcf49e5a8d 1.0.1
2021-09-23 01:41:44 -05:00

16 lines
358 B
JavaScript
Executable File

jre.imports['java.lang.Short'].load = () => {
class Short {}
Short.parseShort = (d) => {
return parseInt(d);
}
Short.compare = (a, b) => {
return a - b;
}
Short.MAX_VALUE = Number.MAX_VALUE;
Short.POSITIVE_INFINITY = Number.POSITIVE_INFINITY;
Short.NEGATIVE_INFINITY = Number.NEGATIVE_INFINITY;
Short.NaN = NaN;
jre.java.lang.Short = Short;
}