Package cool.scx.common.util
Class ScopedValue<T>
java.lang.Object
cool.scx.common.util.ScopedValue<T>
- Type Parameters:
T- a
使用 threadLocal 模拟的 ScopedValue
todo ScopedValue 正式版本发布时 移除此类
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()static <T> ScopedValue<T> static <T> ScopedValue.Carrier<T> where(ScopedValue<T> key, T value)
-
Constructor Details
-
ScopedValue
public ScopedValue()
-
-
Method Details
-
newInstance
-
where
-
get
-