Class FastThreadLocal<T>
java.lang.Object
java.lang.ThreadLocal<T>
com.xpdustry.claj.common.util.FastThreadLocal<T>
ThreadLocal with MRU fast path.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()protected Tvoidremove()voidstatic <T> FastThreadLocal<T> with(arc.func.Prov<T> supplier) Methods inherited from class ThreadLocal
withInitial
-
Constructor Details
-
FastThreadLocal
public FastThreadLocal() -
FastThreadLocal
-
-
Method Details
-
with
-
initialValue
- Overrides:
initialValuein classThreadLocal<T>
-
get
- Overrides:
getin classThreadLocal<T>
-
set
- Overrides:
setin classThreadLocal<T>
-
remove
public void remove()- Overrides:
removein classThreadLocal<T>
-