All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.swoval.files.WatchedDirectory Maven / Gradle / Ivy

There is a newer version: 2.1.12
Show newest version
package com.swoval.files;

interface WatchedDirectory extends AutoCloseable {
  /** Cancel the watch on this directory. Handle all non-fatal exceptions. */
  @Override
  void close();
}

class WatchedDirectories {
  static WatchedDirectory INVALID =
      new WatchedDirectory() {
        @Override
        public void close() {}

        @Override
        public String toString() {
          return "Invalid";
        }
      };
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy