ThreadUtils.ThreadPredicatepublic static class ThreadUtils.ThreadIdPredicate extends Object implements ThreadUtils.ThreadPredicate
| Constructor | Description |
|---|---|
ThreadIdPredicate(long threadId) |
Predicate constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
test(Thread thread) |
Evaluates this predicate on the given thread.
|
public ThreadIdPredicate(long threadId)
threadId - the threadId to matchIllegalArgumentException - if the threadId is zero or negativepublic boolean test(Thread thread)
ThreadUtils.ThreadPredicatetest in interface ThreadUtils.ThreadPredicatethread - the threadtrue if the thread matches the predicate, otherwise falseCopyright © 2001–2018. All rights reserved.