Class ThreadUtils.ThreadIdPredicate

java.lang.Object
org.apache.commons.lang3.ThreadUtils.ThreadIdPredicate
All Implemented Interfaces:
ThreadUtils.ThreadPredicate
Enclosing class:
ThreadUtils

@Deprecated public static class ThreadUtils.ThreadIdPredicate extends Object implements ThreadUtils.ThreadPredicate
Deprecated.
Use a Predicate.
A predicate implementation which matches a thread id.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final long
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ThreadIdPredicate(long threadId)
    Deprecated.
    Predicate constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    test(Thread thread)
    Deprecated.
    Evaluates this predicate on the given thread.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • threadId

      private final long threadId
      Deprecated.
  • Constructor Details

    • ThreadIdPredicate

      public ThreadIdPredicate(long threadId)
      Deprecated.
      Predicate constructor
      Parameters:
      threadId - the threadId to match
      Throws:
      IllegalArgumentException - if the threadId is zero or negative
  • Method Details

    • test

      public boolean test(Thread thread)
      Deprecated.
      Description copied from interface: ThreadUtils.ThreadPredicate
      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