Record Class NoteSearchHitModel
java.lang.Object
java.lang.Record
io.meeds.notes.mcp.model.NoteSearchHitModel
- Record Components:
noteId- the note idtitle- the note titlesummary- the note summary, when it has oneurl- the note's absolute URL, when it can be resolvedupdatedDate- the date the note was last updatedspace- the space whose notebook holds the note, absent for a personal note
-
Constructor Summary
ConstructorsConstructorDescriptionNoteSearchHitModel(long noteId, String title, String summary, String url, String updatedDate, NoteSpaceModel space) Creates an instance of aNoteSearchHitModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longnoteId()Returns the value of thenoteIdrecord component.space()Returns the value of thespacerecord component.summary()Returns the value of thesummaryrecord 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
-
NoteSearchHitModel
public NoteSearchHitModel(long noteId, String title, String summary, String url, String updatedDate, NoteSpaceModel space) Creates an instance of aNoteSearchHitModelrecord class.- Parameters:
noteId- the value for thenoteIdrecord componenttitle- the value for thetitlerecord componentsummary- the value for thesummaryrecord componenturl- the value for theurlrecord componentupdatedDate- the value for theupdatedDaterecord componentspace- the value for thespacerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
noteId
-
title
-
summary
-
url
-
updatedDate
Returns the value of theupdatedDaterecord component.- Returns:
- the value of the
updatedDaterecord component
-
space
-