Record Class SettingsModel
java.lang.Object
java.lang.Record
io.meeds.mcp.server.tool.model.SettingsModel
-
Constructor Summary
ConstructorsConstructorDescriptionSettingsModel(String language, String languageLabel, String timezone, String status) Creates an instance of aSettingsModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.language()Returns the value of thelanguagerecord component.Returns the value of thelanguageLabelrecord component.status()Returns the value of thestatusrecord component.timezone()Returns the value of thetimezonerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SettingsModel
Creates an instance of aSettingsModelrecord class.- Parameters:
language- the value for thelanguagerecord componentlanguageLabel- the value for thelanguageLabelrecord componenttimezone- the value for thetimezonerecord componentstatus- the value for thestatusrecord 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). -
language
Returns the value of thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-
languageLabel
Returns the value of thelanguageLabelrecord component.- Returns:
- the value of the
languageLabelrecord component
-
timezone
Returns the value of thetimezonerecord component.- Returns:
- the value of the
timezonerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-