Record Class ConfigLoadResult
java.lang.Object
java.lang.Record
fr.robie.machineengine.api.config.ConfigLoadResult
- Record Components:
created- the file did not exist and was written with every defaultadded- keys missing from the file, now written with their defaultschanged- keys whose value changed on this reloadrestartRequired- restart-only keys changed in the file; they keep their old value until a restartinvalid- keys with an invalid value; they use their default and the file is left as it iserror- why the file could not be read (every value is then kept, or the default on the first load)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadded()Returns the value of theaddedrecord component.changed()Returns the value of thechangedrecord component.booleancreated()Returns the value of thecreatedrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable Stringerror()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.invalid()Returns the value of theinvalidrecord component.Returns the value of therestartRequiredrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConfigLoadResult
public ConfigLoadResult(boolean created, @NotNull @NotNull List<String> added, @NotNull @NotNull List<String> changed, @NotNull @NotNull List<String> restartRequired, @NotNull @NotNull List<String> invalid, @Nullable @Nullable String error) Creates an instance of aConfigLoadResultrecord class.- Parameters:
created- the value for thecreatedrecord componentadded- the value for theaddedrecord componentchanged- the value for thechangedrecord componentrestartRequired- the value for therestartRequiredrecord componentinvalid- the value for theinvalidrecord componenterror- the value for theerrorrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
created
-
added
-
changed
-
restartRequired
Returns the value of therestartRequiredrecord component.- Returns:
- the value of the
restartRequiredrecord component
-
invalid
-
error
-