APIdia Launch Partner
Top Description Inners Fields Constructors Methods
java.nio.file

public final Class StandardWatchEventKinds

extends Object
Class Inheritance

Defines the standard event kinds.
Since
1.7

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
public static final WatchEvent.Kind<Path>
ENTRY_CREATE

Directory entry created.

public static final WatchEvent.Kind<Path>
ENTRY_DELETE

Directory entry deleted.

public static final WatchEvent.Kind<Path>
ENTRY_MODIFY

Directory entry modified.

public static final WatchEvent.Kind<Object>
OVERFLOW

A special event to indicate that events may have been lost or discarded.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ENTRY_CREATEback to summary
public static final WatchEvent.Kind<Path> ENTRY_CREATE

Directory entry created.

When a directory is registered for this event then the WatchKey is queued when it is observed that an entry is created in the directory or renamed into the directory. The event count for this event is always 1.

ENTRY_DELETEback to summary
public static final WatchEvent.Kind<Path> ENTRY_DELETE

Directory entry deleted.

When a directory is registered for this event then the WatchKey is queued when it is observed that an entry is deleted or renamed out of the directory. The event count for this event is always 1.

ENTRY_MODIFYback to summary
public static final WatchEvent.Kind<Path> ENTRY_MODIFY

Directory entry modified.

When a directory is registered for this event then the WatchKey is queued when it is observed that an entry in the directory has been modified. The event count for this event is 1 or greater.

OVERFLOWback to summary
public static final WatchEvent.Kind<Object> OVERFLOW

A special event to indicate that events may have been lost or discarded.

The context for this event is implementation specific and may be null. The event count may be greater than 1.

See Also
WatchService

Constructor Detail

StandardWatchEventKindsback to summary
private StandardWatchEventKinds()
java.nio.file back to summary

private Class StandardWatchEventKinds.StdWatchEventKind<T>

extends Object
implements WatchEvent.Kind<T>
Class Inheritance
All Implemented Interfaces
java.nio.file.WatchEvent.Kind

Field Summary

Modifier and TypeField and Description
private final String
private final Class<T>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public String
name()

Implements java.nio.file.WatchEvent.Kind.name.

Returns the name of the event kind.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public Class<T>
type()

Implements java.nio.file.WatchEvent.Kind.type.

Returns the type of the context value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

nameback to summary
private final String name
typeback to summary
private final Class<T> type

Constructor Detail

StdWatchEventKindback to summary
pack-priv StdWatchEventKind(String name, Class<T> type)

Method Detail

nameback to summary
public String name()

Implements java.nio.file.WatchEvent.Kind.name.

Doc from java.nio.file.WatchEvent.Kind.name.

Returns the name of the event kind.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
typeback to summary
public Class<T> type()

Implements java.nio.file.WatchEvent.Kind.type.

Doc from java.nio.file.WatchEvent.Kind.type.

Returns the type of the context value.

Annotations
@Override