Class ThreadUtils.ThreadIdPredicate

    • Constructor Summary

      Constructors 
      Constructor Description
      ThreadIdPredicate​(long threadId)
      Predicate constructor
    • 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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ThreadIdPredicate

        public ThreadIdPredicate​(long threadId)
        Predicate constructor
        Parameters:
        threadId - the threadId to match
        Throws:
        java.lang.IllegalArgumentException - if the threadId is zero or negative
    • 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 interface ThreadUtils.ThreadPredicate
        Parameters:
        thread - the thread
        Returns:
        true if the thread matches the predicate, otherwise false