ThreadUtils.NamePredicate¶
- @Deprecated public static class org.apache.commons.lang3.ThreadUtils.NamePredicate implements ThreadUtils.ThreadPredicate, ThreadUtils.ThreadGroupPredicate[source]¶
Deprecated: Use a
Predicate.Used internally, consider private.
A predicate implementation which matches a thread or thread group name.
Constructors¶
Constructs an instance. |
- public NamePredicate(String name)[source]¶
Constructs an instance.
- Parameters:
name – thread or thread group name.
- Throws:
NullPointerException– Thrown if the name isnull.
Methods¶
|
Evaluates this predicate on the given thread. |
|
|
Evaluates this predicate on the given thread group. |
- 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
- public boolean test(ThreadGroup threadGroup)[source]¶
Evaluates this predicate on the given thread group.
- Specified by:
testin interfaceThreadUtils.ThreadGroupPredicate- Parameters:
threadGroup – The thread group
- Returns:
trueif the threadGroup matches the predicate, otherwisefalse