public static interface
WatchEvent.Kind
WatchEvent.Kind
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eWatchEvent.Kind\u003c/code\u003e is an interface used for identifying event types in file system monitoring.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to retrieve the name (\u003ccode\u003ename()\u003c/code\u003e) and the context type (\u003ccode\u003etype()\u003c/code\u003e) of an event.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eStandardWatchEventKinds\u003c/code\u003e provides predefined event kind constants.\u003c/p\u003e\n"]]],[],null,["# WatchEvent.Kind\n\npublic static interface **WatchEvent.Kind** \nAn event kind, for the purposes of identification. \n\n##### See Also\n\n- [StandardWatchEventKinds](../../../../reference/java/nio/file/StandardWatchEventKinds.html) \n\n### Public Method Summary\n\n|-------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [String](../../../../reference/java/lang/String.html) | [name](../../../../reference/java/nio/file/WatchEvent.Kind.html#name())() Returns the name of the event kind. |\n| abstract [Class](../../../../reference/java/lang/Class.html)\\\u003cT\\\u003e | [type](../../../../reference/java/nio/file/WatchEvent.Kind.html#type())() Returns the type of the [context](../../../../reference/java/nio/file/WatchEvent.html#context()) value. |\n\nPublic Methods\n--------------\n\n#### public abstract [String](../../../../reference/java/lang/String.html)\n**name**\n()\n\nReturns the name of the event kind. \n\n##### Returns\n\n- the name of the event kind \n\n#### public abstract [Class](../../../../reference/java/lang/Class.html)\\\u003cT\\\u003e\n**type**\n()\n\nReturns the type of the [context](../../../../reference/java/nio/file/WatchEvent.html#context()) value. \n\n##### Returns\n\n- the type of the context value"]]