java.lang.SystemInt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtransc-rt Show documentation
Show all versions of jtransc-rt Show documentation
JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.
The newest version!
package java.lang;
import com.jtransc.annotation.JTranscSync;
public class SystemInt {
static private int $$lastId = 1;
@JTranscSync
static public int identityHashCode(Object x) {
if (x != null) {
if (x.$$id == 0) x.$$id = $$lastId++;
return x.$$id;
}
return 0;
}
}