Record Class ConfigImpl.SnapshotResult
java.lang.Object
java.lang.Record
net.ixdarklord.coolcatcore.internal.config.ConfigImpl.SnapshotResult
- Enclosing class:
ConfigImpl
public static record ConfigImpl.SnapshotResult(Set<ConfigValue<?>> changed, List<net.minecraft.network.chat.Component> errors)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSnapshotResult(Set<ConfigValue<?>> changed, List<net.minecraft.network.chat.Component> errors) Creates an instance of aSnapshotResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionSet<ConfigValue<?>> changed()Returns the value of thechangedrecord component.final booleanIndicates whether some other object is "equal to" this one.List<net.minecraft.network.chat.Component> errors()Returns the value of theerrorsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SnapshotResult
public SnapshotResult(Set<ConfigValue<?>> changed, List<net.minecraft.network.chat.Component> errors) Creates an instance of aSnapshotResultrecord class.- Parameters:
changed- the value for thechangedrecord componenterrors- the value for theerrorsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
changed
Returns the value of thechangedrecord component.- Returns:
- the value of the
changedrecord component
-
errors
Returns the value of theerrorsrecord component.- Returns:
- the value of the
errorsrecord component
-