Package org.terracotta.utilities.test.io
Class WindowsSpecialFolder.LazyProperty<T>
- java.lang.Object
-
- org.terracotta.utilities.test.io.WindowsSpecialFolder.LazyProperty<T>
-
- Type Parameters:
T- the value type
- Enclosing class:
- WindowsSpecialFolder
private static final class WindowsSpecialFolder.LazyProperty<T> extends java.lang.ObjectA derived on first reference value holder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceWindowsSpecialFolder.LazyProperty.ThrowingSupplier<T>
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.atomic.AtomicReference<T>referenceprivate WindowsSpecialFolder.LazyProperty.ThrowingSupplier<T>supplier
-
Constructor Summary
Constructors Modifier Constructor Description privateLazyProperty(WindowsSpecialFolder.LazyProperty.ThrowingSupplier<T> supplier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Tget()static <T> WindowsSpecialFolder.LazyProperty<T>lazily(WindowsSpecialFolder.LazyProperty.ThrowingSupplier<T> from)
-
-
-
Field Detail
-
reference
private final java.util.concurrent.atomic.AtomicReference<T> reference
-
supplier
private final WindowsSpecialFolder.LazyProperty.ThrowingSupplier<T> supplier
-
-
Constructor Detail
-
LazyProperty
private LazyProperty(WindowsSpecialFolder.LazyProperty.ThrowingSupplier<T> supplier)
-
-
Method Detail
-
lazily
public static <T> WindowsSpecialFolder.LazyProperty<T> lazily(WindowsSpecialFolder.LazyProperty.ThrowingSupplier<T> from)
-
get
public T get() throws java.io.IOException
- Throws:
java.io.IOException
-
-