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

java.lang.ThreadLocal Maven / Gradle / Ivy

Go to download

JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.

There is a newer version: 0.6.8
Show newest version
package java.lang;

public class ThreadLocal {
	private T value;

	protected T initialValue() {
		return null;
	}

	public ThreadLocal() {
		value = initialValue();
	}

	public T get() {
		return value;
	}

	private T setInitialValue() {
		this.value = initialValue();
		return value;
	}

	public void set(T value) {
		this.value = value;
	}

	public void remove() {
		this.value = null;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy