public static class Threads.NamePredicate extends Object implements Threads.ThreadPredicate, Threads.ThreadGroupPredicate
| 构造器和说明 |
|---|
NamePredicate(String name)
Predicate constructor
|
public NamePredicate(String name)
name - thread or threadgroup nameIllegalArgumentException - if the name is nullpublic boolean test(ThreadGroup threadGroup)
Threads.ThreadGroupPredicatetest 在接口中 Threads.ThreadGroupPredicatethreadGroup - the threadgrouptrue if the threadGroup matches the predicate, otherwise falsepublic boolean test(Thread thread)
Threads.ThreadPredicatetest 在接口中 Threads.ThreadPredicatethread - the threadtrue if the thread matches the predicate, otherwise falseCopyright © 2022. All rights reserved.