public static class ThreadUtils.NamePredicate extends java.lang.Object implements ThreadUtils.ThreadPredicate, ThreadUtils.ThreadGroupPredicate
Constructor and Description |
---|
ThreadUtils.NamePredicate(java.lang.String name)
Predicate constructor
|
public ThreadUtils.NamePredicate(java.lang.String name)
name
- thread or threadgroup namejava.lang.IllegalArgumentException
- if the name is null
public boolean test(java.lang.ThreadGroup threadGroup)
ThreadUtils.ThreadGroupPredicate
test
in interface ThreadUtils.ThreadGroupPredicate
threadGroup
- the threadgrouptrue
if the threadGroup matches the predicate, otherwise false
public boolean test(java.lang.Thread thread)
ThreadUtils.ThreadPredicate
test
in interface ThreadUtils.ThreadPredicate
thread
- the threadtrue
if the thread matches the predicate, otherwise false