Package net.mcreator.io
Record Class FileWatcher.FileChange
java.lang.Object
java.lang.Record
net.mcreator.io.FileWatcher.FileChange
- Enclosing class:
FileWatcher
public static record FileWatcher.FileChange(WatchKey watchKey, WatchEvent.Kind<?> kind, File file)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFileChange(WatchKey watchKey, WatchEvent.Kind<?> kind, File file) Creates an instance of aFileChangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.final StringtoString()Returns a string representation of this record class.watchKey()Returns the value of thewatchKeyrecord component.
-
Constructor Details
-
FileChange
Creates an instance of aFileChangerecord class.- Parameters:
watchKey- the value for thewatchKeyrecord componentkind- the value for thekindrecord componentfile- the value for thefilerecord component
-
-
Method Details
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
watchKey
Returns the value of thewatchKeyrecord component.- Returns:
- the value of the
watchKeyrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
file
Returns the value of thefilerecord component.- Returns:
- the value of the
filerecord component
-