Record Class ClientConfigManager.StartupMismatch
java.lang.Object
java.lang.Record
net.ixdarklord.coolcatcore.internal.config.client.ClientConfigManager.StartupMismatch
- Enclosing class:
ClientConfigManager
public static record ClientConfigManager.StartupMismatch(ConfigImpl config, ConfigValueImpl<?> value, Object serverValue)
extends Record
A startup value this client has but the server doesn't.
-
Constructor Summary
ConstructorsConstructorDescriptionStartupMismatch(ConfigImpl config, ConfigValueImpl<?> value, Object serverValue) Creates an instance of aStartupMismatchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionconfig()Returns the value of theconfigrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theserverValuerecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
StartupMismatch
Creates an instance of aStartupMismatchrecord class.- Parameters:
config- the value for theconfigrecord componentvalue- the value for thevaluerecord componentserverValue- the value for theserverValuerecord component
-
-
Method Details
-
format
-
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. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
serverValue
Returns the value of theserverValuerecord component.- Returns:
- the value of the
serverValuerecord component
-