Class SoftThreadLocal<T>

java.lang.Object
org.robolectric.util.SoftThreadLocal<T>
Type Parameters:
T - The referent to track.

public abstract class SoftThreadLocal<T> extends Object
Soft reference to a java.lang.ThreadLocal.
  • Constructor Details

    • SoftThreadLocal

      public SoftThreadLocal()
  • Method Details

    • get

      public T get()
    • set

      public void set(T item)
    • create

      protected abstract T create()