Class ThreadLocal<T>

java.lang.Object
java.lang.ThreadLocal<T>

public class ThreadLocal<T> extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
     
    protected T
     
    void
     
    void
    set(T value)
     

    Methods inherited from class java.lang.Object

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

    • ThreadLocal

      public ThreadLocal()
  • Method Details

    • initialValue

      protected T initialValue()
    • get

      public T get()
    • set

      public void set(T value)
    • remove

      public void remove()