Class DirectoryStash

  • All Implemented Interfaces:
    java.io.Closeable , java.lang.AutoCloseable

    
    public final class DirectoryStash
     implements Closeable
                        

    A Closeable class which temporarily moves away directories and moves them back on close. Any conflicting directory created at the location of an original directory is deleted before the original state is restored. If a specified directory did not exist on initialization, it will also not exist on close.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit close()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DirectoryStash

        DirectoryStash(Set<File> directories)