Package io.meeds.notes.mcp.model
Record Class NoteVersionModel
java.lang.Object
java.lang.Record
io.meeds.notes.mcp.model.NoteVersionModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.meeds.mcp.server.tool.model.UserModelauthor()Returns the value of theauthorrecord component.content()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedDaterecord component.Returns the value of theversionIdrecord component.Returns the value of theversionNumberrecord component.
-
Constructor Details
-
NoteVersionModel
public NoteVersionModel(Long versionNumber, String versionId, String title, String content, String updatedDate, io.meeds.mcp.server.tool.model.UserModel author) Creates an instance of aNoteVersionModelrecord class.- Parameters:
versionNumber- the value for theversionNumberrecord componentversionId- the value for theversionIdrecord componenttitle- the value for thetitlerecord componentcontent- the value for thecontentrecord componentupdatedDate- the value for theupdatedDaterecord componentauthor- the value for theauthorrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
versionNumber
Returns the value of theversionNumberrecord component.- Returns:
- the value of the
versionNumberrecord component
-
versionId
Returns the value of theversionIdrecord component.- Returns:
- the value of the
versionIdrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
updatedDate
Returns the value of theupdatedDaterecord component.- Returns:
- the value of the
updatedDaterecord component
-
author
public io.meeds.mcp.server.tool.model.UserModel author()Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-