All Downloads are FREE. Search and download functionalities are using the official Maven repository.

java.lang.SystemInt Maven / Gradle / Ivy

Go to download

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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy