public static class Os.DeletionResult
extends java.lang.Object
Constructor and Description |
---|
Os.DeletionResult(java.io.File file,
boolean successful,
java.lang.Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
<T> T |
asNullIgnoringError() |
<T> T |
asNullOrThrowing() |
java.io.File |
getFile() |
java.lang.Throwable |
getThrowable() |
Os.DeletionResult |
throwIfFailed() |
boolean |
wasSuccessful() |
public Os.DeletionResult(java.io.File file, boolean successful, java.lang.Throwable throwable)
public boolean wasSuccessful()
public Os.DeletionResult throwIfFailed()
public java.io.File getFile()
public java.lang.Throwable getThrowable()
public <T> T asNullIgnoringError()
public <T> T asNullOrThrowing()