Record Class UserSummaryModel
java.lang.Object
java.lang.Record
io.meeds.mcp.server.tool.model.UserSummaryModel
- Record Components:
username- the usernamedisplayName- the display name, absent when the viewer may not see it
-
Constructor Summary
ConstructorsConstructorDescriptionUserSummaryModel(String username, String displayName) Creates an instance of aUserSummaryModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
UserSummaryModel
Creates an instance of aUserSummaryModelrecord class.- Parameters:
username- the value for theusernamerecord componentdisplayName- the value for thedisplayNamerecord 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). -
username
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-