Class FileHistory

java.lang.Object
org.ampere.base.util.FileHistory
All Implemented Interfaces:
PACTEdef

public class FileHistory extends Object implements PACTEdef
File History
Since:
2020
Author:
hmorel
  • Field Details

  • Constructor Details

    • FileHistory

      public FileHistory(String description)
  • Method Details

    • buildId

      public static String buildId(String description)
    • getCurrentList

      public String[] getCurrentList()
    • get

      public File get(int index)
    • remove

      public boolean remove(File file)
    • get

      public File get(String absolutePath, boolean autoRemove)
      Get a file in the history list.
      Parameters:
      absolutePath - input path
      autoRemove - flag specifying that the file is removed from the list if it does not exist.
      Returns:
      the found file or null.
    • savePreferences

      public void savePreferences()
    • register

      public File register(File file, boolean autoCorrect)
      register a file as the more recent ones
      Parameters:
      file - input file
      autoCorrect - flag than enable the autocorrection of file name containing a semiconlon.
    • toString

      public String toString()
      Overrides:
      toString in class Object