org.jbox2d.emul.java.lang.ThreadLocal Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of playn-jbox2d Show documentation
Show all versions of playn-jbox2d Show documentation
A GWT-compatible port of JBox2D, for use with PlayN games.
package java.lang;
public class ThreadLocal {
private T object;
protected T initialValue() {
return null;
}
public T get() {
if(object == null) {
object = initialValue();
}
return object;
}
public void set(T value) {
object = value;
}
}