Class CloseablePath
- java.lang.Object
-
- com.g2forge.alexandria.java.close.AGuaranteeClose
-
- com.g2forge.alexandria.java.io.file.CloseablePath
-
- All Implemented Interfaces:
ICloseable
,ICloseableSupplier<Path>
,IFunctional
,IRunnable
,ISupplier<Path>
,IThrowRunnable<RuntimeException>
,Closeable
,AutoCloseable
,Runnable
,Supplier<Path>
- Direct Known Subclasses:
TempDirectory
public class CloseablePath extends AGuaranteeClose implements ICloseableSupplier<Path>
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
autodelete
protected Path
path
-
Constructor Summary
Constructors Constructor Description CloseablePath(ISupplier<Path> path, boolean autodelete)
CloseablePath(Path path, boolean autodelete)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
closeInternal()
Path
get()
-
Methods inherited from class com.g2forge.alexandria.java.close.AGuaranteeClose
close
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.g2forge.alexandria.java.close.ICloseable
close
-
Methods inherited from interface com.g2forge.alexandria.java.function.ISupplier
run, toFunction, wrap
-
-
-
-
Field Detail
-
path
protected final Path path
-
autodelete
protected final boolean autodelete
-
-
Method Detail
-
closeInternal
protected void closeInternal()
- Specified by:
closeInternal
in classAGuaranteeClose
-
-