Class ThreadUtils.NamePredicate

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

@Deprecated public static class ThreadUtils.NamePredicate extends Object implements ThreadUtils.ThreadPredicate, ThreadUtils.ThreadGroupPredicate
Deprecated.
Use a Predicate.
Used internally, consider private.

A predicate implementation which matches a thread or thread group name.

  • Field Summary

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

    Constructors
    Constructor
    Description
    Deprecated.
    Constructs an instance.
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    • name

      private final String name
      Deprecated.
  • Constructor Details

    • NamePredicate

      public NamePredicate(String name)
      Deprecated.
      Constructs an instance.
      Parameters:
      name - thread or thread group name
      Throws:
      NullPointerException - if the name is null
  • Method Details