Class ThreadLocalValueHolder<T>

  • All Implemented Interfaces:
    IValueHolder<T>

    public class ThreadLocalValueHolder<T>
    extends java.lang.Object
    implements IValueHolder<T>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T get()
      Dereference the IValueHolder.
      T set​(T value)
      Assign a new value.
      • Methods inherited from class java.lang.Object

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

      • ThreadLocalValueHolder

        public ThreadLocalValueHolder()
    • Method Detail

      • set

        public T set​(T value)
        Description copied from interface: IValueHolder
        Assign a new value.
        Specified by:
        set in interface IValueHolder<T>
        Returns:
        The previous value (optional)