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 Object
implements ThreadUtils.ThreadPredicate, ThreadUtils.ThreadGroupPredicate
Deprecated.
Used internally, consider private.
 
A predicate implementation which matches a thread or thread group name.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanDeprecated.Evaluates this predicate on the given thread.booleantest(ThreadGroup threadGroup) Deprecated.Evaluates this predicate on the given thread group.
- 
Constructor Details- 
NamePredicateDeprecated.Constructs an instance.- Parameters:
- name- thread or thread group name
- Throws:
- NullPointerException- if the name is- null
 
 
- 
- 
Method Details- 
testDeprecated.Description copied from interface:ThreadUtils.ThreadPredicateEvaluates this predicate on the given thread.- Specified by:
- testin interface- ThreadUtils.ThreadPredicate
- Parameters:
- thread- the thread
- Returns:
- trueif the thread matches the predicate, otherwise- false
 
- 
testDeprecated.Description copied from interface:ThreadUtils.ThreadGroupPredicateEvaluates this predicate on the given thread group.- Specified by:
- testin interface- ThreadUtils.ThreadGroupPredicate
- Parameters:
- threadGroup- the thread group
- Returns:
- trueif the threadGroup matches the predicate, otherwise- false
 
 
- 
Predicate.