WatchEvent.Kind

  • WatchEvent.Kind is an interface used for identifying event types in file system monitoring.

  • It provides methods to retrieve the name (name()) and the context type (type()) of an event.

  • StandardWatchEventKinds provides predefined event kind constants.

public static interface WatchEvent.Kind

An event kind, for the purposes of identification.

Public Method Summary

abstract String
name()
Returns the name of the event kind.
abstract Class<T>
type()
Returns the type of the context value.

Public Methods

public abstract String name ()

Returns the name of the event kind.

Returns
  • the name of the event kind

public abstract Class<T> type ()

Returns the type of the context value.

Returns
  • the type of the context value