public class ThreadLocals extends Object
| Constructor and Description |
|---|
ThreadLocals() |
| Modifier and Type | Method and Description |
|---|---|
static ThreadLocal |
getThreadLocal(Class cls,
String fldname)
Given class and static ThreadLocal field name, return the associated ThreadLocal.
|
static ThreadLocal |
getThreadLocal(String clsname,
String fldname)
Given class name and static ThreadLocal field name, return the associated ThreadLocal.
|
public static ThreadLocal getThreadLocal(String clsname, String fldname)
clsname - the class namefldname - the ThreadLocal field namepublic static ThreadLocal getThreadLocal(Class cls, String fldname)
cls - the classfldname - the ThreadLocal field name.Copyright © 2019. All rights reserved.