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. |
Methods
Evaluates this predicate on the given thread. |
|
Evaluates this predicate on the given thread group. |
- @Override public boolean test(Thread thread)[source]
Evaluates this predicate on the given thread.
- Parameters:
thread – The thread
- Returns:
trueif the thread matches the predicate, otherwisefalse
- @Override public boolean test(ThreadGroup threadGroup)[source]
Evaluates this predicate on the given thread group.
- Parameters:
threadGroup – The thread group
- Returns:
trueif the threadGroup matches the predicate, otherwisefalse