public abstract class LazyPath extends Object
Constructor and Description |
---|
LazyPath() |
Modifier and Type | Method and Description |
---|---|
protected abstract Path |
create() |
Path |
get()
On first access it will invoke the given supplier to obtain the value of the Path.
|
Path |
getUnchecked()
Does not invoke the path supplier, assuming it was invoked previously.
|
static LazyPath |
ofInstance(Path path)
Creates an instance with given path.
|
String |
toString() |
public static LazyPath ofInstance(Path path)
path
- The path that get()/getUnchecked() methods should return.public final Path get() throws IOException
IOException
public Path getUnchecked()
protected abstract Path create() throws IOException
IOException