Record Class NoteVersionModel
java.lang.Object
java.lang.Record
io.meeds.notes.mcp.model.NoteVersionModel
- Record Components:
versionNumber- the version numberversionId- the version idtitle- the note title in that versionupdatedDate- the date the version was written- the user who wrote the version
-
Constructor Summary
ConstructorsConstructorDescriptionNoteVersionModel(Long versionNumber, String versionId, String title, String updatedDate, io.meeds.mcp.server.tool.model.UserModel author) Creates an instance of aNoteVersionModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionio.meeds.mcp.server.tool.model.UserModelauthor()Returns the value of theauthorrecord 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 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 componentupdatedDate- the value for theupdatedDaterecord componentauthor- the value for theauthorrecord 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). -
versionNumber
Returns the value of theversionNumberrecord component.- Returns:
- the value of the
versionNumberrecord component
-
versionId
-
title
-
updatedDate
Returns the value of theupdatedDaterecord component.- Returns:
- the value of the
updatedDaterecord component
-
author
-