Class FileDeleteTask

  • All Implemented Interfaces:
    java.lang.Runnable

    public class FileDeleteTask
    extends DynamicTask<java.lang.Void,​java.lang.Void,​java.lang.Boolean>
    A DynamicTask to delete a file.
    • Constructor Detail

      • FileDeleteTask

        public FileDeleteTask​(@Nullable
                              java.io.File file)
        Constructor to initialize an object of this class.
        Parameters:
        file - The file to be deleted.
    • Method Detail

      • doInBackground

        @Nullable
        protected java.lang.Boolean doInBackground​(@Nullable
                                                   java.lang.Void params)
        Description copied from class: DynamicRunnable
        This method will be called for doing the background work.
        Specified by:
        doInBackground in class DynamicRunnable<java.lang.Void,​java.lang.Void,​java.lang.Boolean>
        Parameters:
        params - The optional parameters required for the work.
        Returns:
        The optional result object.
      • getFile

        @Nullable
        public java.io.File getFile()
        Get the file used by this task.
        Returns:
        The file used by this task.