public final class ThreadLocalHelper extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
getSTL(@NotNull ThreadLocal<T> threadLocal,
@NotNull Supplier<T> supplier) |
static <T,A> T |
getTL(@NotNull ThreadLocal<WeakReference<T>> threadLocal,
A a,
@NotNull Function<A,T> function) |
static <T,A> T |
getTL(@NotNull ThreadLocal<WeakReference<T>> threadLocal,
A supplyingEntity,
@NotNull Function<A,T> constructor,
@Nullable ReferenceQueue<T> referenceQueue,
@Nullable Consumer<WeakReference<T>> registrar) |
static <T> T |
getTL(@NotNull ThreadLocal<WeakReference<T>> threadLocal,
@NotNull Supplier<T> supplier) |
@NotNull public static <T> T getTL(@NotNull @NotNull ThreadLocal<WeakReference<T>> threadLocal, @NotNull @NotNull Supplier<T> supplier)
@NotNull public static <T> T getSTL(@NotNull @NotNull ThreadLocal<T> threadLocal, @NotNull @NotNull Supplier<T> supplier)
@NotNull public static <T,A> T getTL(@NotNull @NotNull ThreadLocal<WeakReference<T>> threadLocal, A a, @NotNull @NotNull Function<A,T> function)
@NotNull public static <T,A> T getTL(@NotNull @NotNull ThreadLocal<WeakReference<T>> threadLocal, @NotNull A supplyingEntity, @NotNull @NotNull Function<A,T> constructor, @Nullable @Nullable ReferenceQueue<T> referenceQueue, @Nullable @Nullable Consumer<WeakReference<T>> registrar)
Copyright © 2022. All rights reserved.