public class ReflectionUtils extends Object
Modifier and Type | Field and Description |
---|---|
protected static Map<Class<?>,Constructor<?>> |
CONSTRUCTOR_CACHE
Cache of constructors for each class.
|
Modifier | Constructor and Description |
---|---|
protected |
ReflectionUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> Class<T> |
getClass(T o)
Return the correctly-typed
Class of the given object. |
static void |
printThreadInfo(PrintWriter stream,
String title)
Print all of the thread's information and stack traces.
|
static void |
setContentionTracing(boolean val) |
protected static final Map<Class<?>,Constructor<?>> CONSTRUCTOR_CACHE
public static void setContentionTracing(boolean val)
public static void printThreadInfo(PrintWriter stream, String title)
stream
- the stream totitle
- a string title for the stack traceCopyright © 2020. All rights reserved.