Package org.apache.commons.lang3
Class ThreadUtils.NamePredicate
- java.lang.Object
-
- org.apache.commons.lang3.ThreadUtils.NamePredicate
-
- All Implemented Interfaces:
ThreadUtils.ThreadGroupPredicate
,ThreadUtils.ThreadPredicate
- Enclosing class:
- ThreadUtils
@Deprecated public static class ThreadUtils.NamePredicate extends java.lang.Object implements ThreadUtils.ThreadPredicate, ThreadUtils.ThreadGroupPredicate
Deprecated.Use aPredicate
.Used internally, consider private.A predicate implementation which matches a thread or thread group name.
-
-
Constructor Summary
Constructors Constructor Description NamePredicate(java.lang.String name)
Deprecated.Constructs an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
test
public boolean test(java.lang.Thread thread)
Deprecated.Description copied from interface:ThreadUtils.ThreadPredicate
Evaluates this predicate on the given thread.- Specified by:
test
in interfaceThreadUtils.ThreadPredicate
- Parameters:
thread
- the thread- Returns:
true
if the thread matches the predicate, otherwisefalse
-
test
public boolean test(java.lang.ThreadGroup threadGroup)
Deprecated.Description copied from interface:ThreadUtils.ThreadGroupPredicate
Evaluates this predicate on the given thread group.- Specified by:
test
in interfaceThreadUtils.ThreadGroupPredicate
- Parameters:
threadGroup
- the thread group- Returns:
true
if the threadGroup matches the predicate, otherwisefalse
-
-