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 Object
implements ThreadUtils.ThreadPredicate, ThreadUtils.ThreadGroupPredicate
A predicate implementation which always returns true.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEvaluates this predicate on the given thread.booleantest(ThreadGroup threadGroup) Evaluates this predicate on the given threadgroup.
-
Constructor Details
-
AlwaysTruePredicate
private AlwaysTruePredicate()
-
-
Method Details
-
test
Description copied from interface:ThreadUtils.ThreadPredicateEvaluates this predicate on the given thread.- Specified by:
testin interfaceThreadUtils.ThreadPredicate- Parameters:
thread- the thread- Returns:
trueif the thread matches the predicate, otherwisefalse
-
test
Description copied from interface:ThreadUtils.ThreadGroupPredicateEvaluates this predicate on the given threadgroup.- Specified by:
testin interfaceThreadUtils.ThreadGroupPredicate- Parameters:
threadGroup- the threadgroup- Returns:
trueif the threadGroup matches the predicate, otherwisefalse
-