Package org.apache.commons.lang3
Class ThreadUtils.AlwaysTruePredicate
- java.lang.Object
-
- org.apache.commons.lang3.ThreadUtils.AlwaysTruePredicate
-
- All Implemented Interfaces:
ThreadUtils.ThreadGroupPredicate
,ThreadUtils.ThreadPredicate
- Enclosing class:
- ThreadUtils
private static final class ThreadUtils.AlwaysTruePredicate extends java.lang.Object implements ThreadUtils.ThreadPredicate, ThreadUtils.ThreadGroupPredicate
A predicate implementation which always returns true.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
AlwaysTruePredicate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
test(java.lang.Thread thread)
Evaluates this predicate on the given thread.boolean
test(java.lang.ThreadGroup threadGroup)
Evaluates this predicate on the given threadgroup.
-
-
-
Method Detail
-
test
public boolean test(java.lang.Thread thread)
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)
Description copied from interface:ThreadUtils.ThreadGroupPredicate
Evaluates this predicate on the given threadgroup.- Specified by:
test
in interfaceThreadUtils.ThreadGroupPredicate
- Parameters:
threadGroup
- the threadgroup- Returns:
true
if the threadGroup matches the predicate, otherwisefalse
-
-