Class WatchedFile


  • public class WatchedFile
    extends java.lang.Object
    File or Path with a function that is called if the file is modified.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      void modified​(java.nio.file.Path modifiedPath)  
      • Methods inherited from class java.lang.Object

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

      • WatchedFile

        public WatchedFile​(java.io.File file,
                           VoidFunction onChange)
      • WatchedFile

        public WatchedFile​(java.nio.file.Path path,
                           VoidFunction onChange)
    • Method Detail

      • modified

        public void modified​(java.nio.file.Path modifiedPath)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object