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 aFileChange
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.file()
Returns the value of thefile
record component.int
hashCode()
Returns a hash code value for this object.kind()
Returns the value of thekind
record component.final String
toString()
Returns a string representation of this record class.watchKey()
Returns the value of thewatchKey
record component.
-
Constructor Details
-
FileChange
Creates an instance of aFileChange
record class.- Parameters:
watchKey
- the value for thewatchKey
record componentkind
- the value for thekind
record componentfile
- the value for thefile
record 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 thewatchKey
record component.- Returns:
- the value of the
watchKey
record component
-
kind
Returns the value of thekind
record component.- Returns:
- the value of the
kind
record component
-
file
Returns the value of thefile
record component.- Returns:
- the value of the
file
record component
-