ThreadUtils.ThreadGroupPredicate
, ThreadUtils.ThreadPredicate
public static class ThreadUtils.NamePredicate extends Object implements ThreadUtils.ThreadPredicate, ThreadUtils.ThreadGroupPredicate
Constructor | Description |
---|---|
NamePredicate(String name) |
Predicate constructor
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
test(Thread thread) |
Evaluates this predicate on the given thread.
|
boolean |
test(ThreadGroup threadGroup) |
Evaluates this predicate on the given threadgroup.
|
public NamePredicate(String name)
name
- thread or threadgroup nameIllegalArgumentException
- if the name is null
public boolean test(ThreadGroup threadGroup)
ThreadUtils.ThreadGroupPredicate
test
in interface ThreadUtils.ThreadGroupPredicate
threadGroup
- the threadgrouptrue
if the threadGroup matches the predicate, otherwise false
public boolean test(Thread thread)
ThreadUtils.ThreadPredicate
test
in interface ThreadUtils.ThreadPredicate
thread
- the threadtrue
if the thread matches the predicate, otherwise false
Copyright © 2001–2018. All rights reserved.