Class ScxScopedValue<T>
java.lang.Object
cool.scx.common.scope_value.ScxScopedValue<T>
- Type Parameters:
T- T
使用 threadLocal 模拟的 ScopedValue (不支持线程池线程复用和异步线程切换)
todo jdk25 ScopedValue 正式版本发布时 移除此类
- Version:
- 0.0.1
- Author:
- scx567888
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()booleanisBound()static <T> ScxScopedValue<T> static <T> ScxScopedValue.Carrierwhere(ScxScopedValue<T> key, T value)
-
Constructor Details
-
ScxScopedValue
public ScxScopedValue()
-
-
Method Details
-
newInstance
-
where
-
get
-
isBound
public boolean isBound()
-