public class PathDeleteResult extends Object
Represents the result of the operation to delete an indexed file or folder from an index.
Learn more
Modifier | Constructor and Description |
---|---|
protected |
PathDeleteResult(boolean isSuccess,
String error,
String path)
Initializes a new instance of the
PathDeleteResult class. |
Modifier and Type | Method and Description |
---|---|
protected static PathDeleteResult |
create(boolean isSuccess,
String error,
String path) |
String |
getError()
Returns a description of deletion error.
|
String |
getPath()
Returns the path to the file or folder to delete.
|
boolean |
isSuccess()
Returns the success indicator of the delete operation.
|
protected PathDeleteResult(boolean isSuccess, String error, String path)
Initializes a new instance of the PathDeleteResult
class.
isSuccess
- The success indicator of the delete operation.error
- The description of deletion error.path
- The path to the file or folder to delete.protected static PathDeleteResult create(boolean isSuccess, String error, String path)
public final boolean isSuccess()
Returns the success indicator of the delete operation.
true
if the delete operation was successful; otherwise, returns false
.public final String getError()
Returns a description of deletion error.
public final String getPath()
Returns the path to the file or folder to delete.