Package io.meeds.notes.mcp.model
Record Class NoteModel
java.lang.Object
java.lang.Record
io.meeds.notes.mcp.model.NoteModel
public record NoteModel(long noteId, String title, String htmlContent, String url, String createdDate, String updatedDate, boolean hasChildNotes, boolean canEdit, io.meeds.mcp.server.tool.model.UserModel author, io.meeds.mcp.server.tool.model.UserModel lastUpdater, List<NoteBreadcrumbModel> breadcrumb)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionNoteModel(long noteId, String title, String htmlContent, String url, String createdDate, String updatedDate, boolean hasChildNotes, boolean canEdit, io.meeds.mcp.server.tool.model.UserModel author, io.meeds.mcp.server.tool.model.UserModel lastUpdater, List<NoteBreadcrumbModel> breadcrumb) Creates an instance of aNoteModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionio.meeds.mcp.server.tool.model.UserModelauthor()Returns the value of theauthorrecord component.Returns the value of thebreadcrumbrecord component.booleancanEdit()Returns the value of thecanEditrecord component.Returns the value of thecreatedDaterecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thehasChildNotesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehtmlContentrecord component.io.meeds.mcp.server.tool.model.UserModelReturns the value of thelastUpdaterrecord component.longnoteId()Returns the value of thenoteIdrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedDaterecord component.url()Returns the value of theurlrecord component.
-
Constructor Details
-
NoteModel
public NoteModel(long noteId, String title, String htmlContent, String url, String createdDate, String updatedDate, boolean hasChildNotes, boolean canEdit, io.meeds.mcp.server.tool.model.UserModel author, io.meeds.mcp.server.tool.model.UserModel lastUpdater, List<NoteBreadcrumbModel> breadcrumb) Creates an instance of aNoteModelrecord class.- Parameters:
noteId- the value for thenoteIdrecord componenttitle- the value for thetitlerecord componenthtmlContent- the value for thehtmlContentrecord componenturl- the value for theurlrecord componentcreatedDate- the value for thecreatedDaterecord componentupdatedDate- the value for theupdatedDaterecord componenthasChildNotes- the value for thehasChildNotesrecord componentcanEdit- the value for thecanEditrecord componentauthor- the value for theauthorrecord componentlastUpdater- the value for thelastUpdaterrecord componentbreadcrumb- the value for thebreadcrumbrecord 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 '=='. -
noteId
public long noteId()Returns the value of thenoteIdrecord component.- Returns:
- the value of the
noteIdrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
htmlContent
Returns the value of thehtmlContentrecord component.- Returns:
- the value of the
htmlContentrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
createdDate
Returns the value of thecreatedDaterecord component.- Returns:
- the value of the
createdDaterecord component
-
updatedDate
Returns the value of theupdatedDaterecord component.- Returns:
- the value of the
updatedDaterecord component
-
hasChildNotes
public boolean hasChildNotes()Returns the value of thehasChildNotesrecord component.- Returns:
- the value of the
hasChildNotesrecord component
-
canEdit
public boolean canEdit()Returns the value of thecanEditrecord component.- Returns:
- the value of the
canEditrecord component
-
author
public io.meeds.mcp.server.tool.model.UserModel author()Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
lastUpdater
public io.meeds.mcp.server.tool.model.UserModel lastUpdater()Returns the value of thelastUpdaterrecord component.- Returns:
- the value of the
lastUpdaterrecord component
-
breadcrumb
Returns the value of thebreadcrumbrecord component.- Returns:
- the value of the
breadcrumbrecord component
-