ThreadUtils.ThreadIdPredicate¶
- @Deprecated public static class org.apache.commons.lang3.ThreadUtils.ThreadIdPredicate implements ThreadUtils.ThreadPredicate[source]¶
Deprecated: Use a
Predicate.A predicate implementation which matches a thread id.
Constructors¶
Predicate constructor |
- public ThreadIdPredicate(long threadId)[source]¶
Predicate constructor
- Parameters:
threadId – The threadId to match.
- Throws:
IllegalArgumentException– Thrown if the threadId is zero or negative.
Methods¶
|
Evaluates this predicate on the given thread. |
- public boolean test(Thread thread)[source]¶
Evaluates this predicate on the given thread.
- Specified by:
testin interfaceThreadUtils.ThreadPredicate- Parameters:
thread – The thread
- Returns:
trueif the thread matches the predicate, otherwisefalse