ThreadUtils.ThreadGroupPredicate, ThreadUtils.ThreadPredicatepublic static class ThreadUtils.NamePredicate extends java.lang.Object implements ThreadUtils.ThreadPredicate, ThreadUtils.ThreadGroupPredicate
| Constructor | Description |
|---|---|
NamePredicate(java.lang.String name) |
Predicate constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
test(java.lang.Thread thread) |
Evaluates this predicate on the given thread.
|
boolean |
test(java.lang.ThreadGroup threadGroup) |
Evaluates this predicate on the given threadgroup.
|
public NamePredicate(java.lang.String name)
name - thread or threadgroup namejava.lang.IllegalArgumentException - if the name is nullpublic boolean test(java.lang.ThreadGroup threadGroup)
ThreadUtils.ThreadGroupPredicatetest in interface ThreadUtils.ThreadGroupPredicatethreadGroup - the threadgrouptrue if the threadGroup matches the predicate, otherwise falsepublic boolean test(java.lang.Thread thread)
ThreadUtils.ThreadPredicatetest in interface ThreadUtils.ThreadPredicatethread - the threadtrue if the thread matches the predicate, otherwise falseCopyright © 2001-2019 - Apache Software Foundation