java.lang.ThreadLocal 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.
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;
}
}