Package net.imglib2.util
Class CloseableThreadLocal.SuppliedCloseableThreadLocal<T>
- java.lang.Object
-
- net.imglib2.util.CloseableThreadLocal<T>
-
- net.imglib2.util.CloseableThreadLocal.SuppliedCloseableThreadLocal<T>
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Enclosing class:
- CloseableThreadLocal<T>
static final class CloseableThreadLocal.SuppliedCloseableThreadLocal<T> extends CloseableThreadLocal<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.imglib2.util.CloseableThreadLocal
CloseableThreadLocal.SuppliedCloseableThreadLocal<T>
-
-
Constructor Summary
Constructors Constructor Description SuppliedCloseableThreadLocal(java.util.function.Supplier<? extends T> supplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TinitialValue()-
Methods inherited from class net.imglib2.util.CloseableThreadLocal
close, get, set, withInitial
-
-
-
-
Field Detail
-
supplier
private final java.util.function.Supplier<? extends T> supplier
-
-
Constructor Detail
-
SuppliedCloseableThreadLocal
SuppliedCloseableThreadLocal(java.util.function.Supplier<? extends T> supplier)
-
-
Method Detail
-
initialValue
protected T initialValue()
- Overrides:
initialValuein classCloseableThreadLocal<T>
-
-