Predicate.@Deprecated public static class ThreadUtils.NamePredicate extends java.lang.Object implements ThreadUtils.ThreadPredicate, ThreadUtils.ThreadGroupPredicate
A predicate implementation which matches a thread or thread group name.
| Constructor and Description |
|---|
NamePredicate(java.lang.String name)
Deprecated.
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
test(java.lang.Thread thread)
Deprecated.
Evaluates this predicate on the given thread.
|
boolean |
test(java.lang.ThreadGroup threadGroup)
Deprecated.
Evaluates this predicate on the given thread group.
|
public NamePredicate(java.lang.String name)
name - thread or thread group namejava.lang.NullPointerException - if the name is nullpublic boolean test(java.lang.Thread thread)
ThreadUtils.ThreadPredicatetest in interface ThreadUtils.ThreadPredicatethread - the threadtrue if the thread matches the predicate, otherwise falsepublic boolean test(java.lang.ThreadGroup threadGroup)
ThreadUtils.ThreadGroupPredicatetest in interface ThreadUtils.ThreadGroupPredicatethreadGroup - the thread grouptrue if the threadGroup matches the predicate, otherwise falseCopyright © 2010 - 2023 Adobe. All Rights Reserved