Predicate.@Deprecated public static class ThreadUtils.NamePredicate extends Object implements ThreadUtils.ThreadPredicate, ThreadUtils.ThreadGroupPredicate
A predicate implementation which matches a thread or thread group name.
| Constructor and Description |
|---|
NamePredicate(String name)
Deprecated.
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
test(Thread thread)
Deprecated.
Evaluates this predicate on the given thread.
|
boolean |
test(ThreadGroup threadGroup)
Deprecated.
Evaluates this predicate on the given thread group.
|
public NamePredicate(String name)
name - thread or thread group nameNullPointerException - if the name is nullpublic boolean test(Thread thread)
ThreadUtils.ThreadPredicatetest in interface ThreadUtils.ThreadPredicatethread - the threadtrue if the thread matches the predicate, otherwise falsepublic boolean test(ThreadGroup threadGroup)
ThreadUtils.ThreadGroupPredicatetest in interface ThreadUtils.ThreadGroupPredicatethreadGroup - the thread grouptrue if the threadGroup matches the predicate, otherwise falseCopyright © 2001–2023 The Apache Software Foundation. All rights reserved.