All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.phantomthief.scope.JdkThreadLocal Maven / Gradle / Ivy

package com.github.phantomthief.scope;

/**
 * @author w.vela
 * Created on 2019-07-03.
 */
class JdkThreadLocal implements MyThreadLocal {

    private final ThreadLocal threadLocal = new ThreadLocal<>();

    @Override
    public T get() {
        return threadLocal.get();
    }

    @Override
    public void set(T value) {
        threadLocal.set(value);
    }

    @Override
    public void remove() {
        threadLocal.remove();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy