Package io.meeds.mcp.server.tool.model
Record Class PlatformInfoModel
java.lang.Object
java.lang.Record
io.meeds.mcp.server.tool.model.PlatformInfoModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbaseUrl()Returns the value of thebaseUrlrecord component.Returns the value of thedefaultLanguagerecord component.edition()Returns the value of theeditionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.intReturns the value of thespacesCountrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of theusersCountrecord component.version()Returns the value of theversionrecord component.
-
Constructor Details
-
PlatformInfoModel
public PlatformInfoModel(String name, String version, String edition, String baseUrl, long usersCount, int spacesCount, String defaultLanguage) Creates an instance of aPlatformInfoModelrecord class.- Parameters:
name- the value for thenamerecord componentversion- the value for theversionrecord componentedition- the value for theeditionrecord componentbaseUrl- the value for thebaseUrlrecord componentusersCount- the value for theusersCountrecord componentspacesCount- the value for thespacesCountrecord componentdefaultLanguage- the value for thedefaultLanguagerecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
edition
Returns the value of theeditionrecord component.- Returns:
- the value of the
editionrecord component
-
baseUrl
Returns the value of thebaseUrlrecord component.- Returns:
- the value of the
baseUrlrecord component
-
usersCount
public long usersCount()Returns the value of theusersCountrecord component.- Returns:
- the value of the
usersCountrecord component
-
spacesCount
public int spacesCount()Returns the value of thespacesCountrecord component.- Returns:
- the value of the
spacesCountrecord component
-
defaultLanguage
Returns the value of thedefaultLanguagerecord component.- Returns:
- the value of the
defaultLanguagerecord component
-