ThreadUtils.ThreadIdPredicate

@Deprecated public static class org.apache.commons.lang3.ThreadUtils.ThreadIdPredicate implements ThreadUtils.ThreadPredicate[source]

Deprecated: Use a Predicate.

A predicate implementation which matches a thread id.

Constructors

ThreadIdPredicate(long)

Predicate constructor

public ThreadIdPredicate(long threadId)[source]

Predicate constructor

Parameters:

threadId – The threadId to match.

Throws:

java.lang.IllegalArgumentException – Thrown if the threadId is zero or negative.

Methods

test(Thread)

Evaluates this predicate on the given thread.

@Override public boolean test(Thread thread)[source]

Evaluates this predicate on the given thread.

Parameters:

thread – The thread

Returns:

true if the thread matches the predicate, otherwise false