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 threadId)

Predicate constructor

public ThreadIdPredicate(long threadId)[source]

Predicate constructor

Parameters:

threadId – The threadId to match.

Throws:

IllegalArgumentException – Thrown if the threadId is zero or negative.

Methods

boolean

test(Thread thread)

Evaluates this predicate on the given thread.

public boolean test(Thread thread)[source]

Evaluates this predicate on the given thread.

Specified by:

test in interface ThreadUtils.ThreadPredicate

Parameters:

thread – The thread

Returns:

true if the thread matches the predicate, otherwise false