|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbb.util.ThreadUtil
public final class ThreadUtil
Provides static utility methods for Threads.
This class is multithread safe: it is stateless.
Nested Class Summary | |
---|---|
static class |
ThreadUtil.UnitTest
See the Overview page of the project's javadocs for a general description of this unit test class. |
Constructor Summary | |
---|---|
private |
ThreadUtil()
This private constructor suppresses the default (public) constructor, ensuring non-instantiability. |
Method Summary | |
---|---|
static String |
getStackTraceString()
Returns . |
static String |
getStackTraceString(Thread thread)
Returns a String that represent's thread 's stack trace. |
static String |
toString(Thread thread)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private ThreadUtil()
Method Detail |
---|
public static String getStackTraceString()
getStackTraceString
( Thread.currentThread() )
.
public static String getStackTraceString(Thread thread) throws IllegalArgumentException
String
that represent's thread
's stack trace.
IllegalArgumentException
- if thread == nullpublic static String toString(Thread thread)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |