Record Class NoteSearchCollectionModel
java.lang.Object
java.lang.Record
io.meeds.notes.mcp.model.NoteSearchCollectionModel
- Record Components:
notes- the notes found, at mostusedLimitusedLimit- the most notes the page holds, after the requested limit was clampedhasMore- whether more notes match after this pagenextOffset- the offset of the next page, null when there is none
public record NoteSearchCollectionModel(List<NoteSearchHitModel> notes, int usedLimit, boolean hasMore, Integer nextOffset)
extends Record
A page of the notes
search_notes found.-
Constructor Summary
ConstructorsConstructorDescriptionNoteSearchCollectionModel(List<NoteSearchHitModel> notes, int usedLimit, boolean hasMore, Integer nextOffset) Creates an instance of aNoteSearchCollectionModelrecord 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.booleanhasMore()Returns the value of thehasMorerecord component.Returns the value of thenextOffsetrecord component.notes()Returns the value of thenotesrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theusedLimitrecord component.
-
Constructor Details
-
NoteSearchCollectionModel
public NoteSearchCollectionModel(List<NoteSearchHitModel> notes, int usedLimit, boolean hasMore, Integer nextOffset) Creates an instance of aNoteSearchCollectionModelrecord class.- Parameters:
notes- the value for thenotesrecord componentusedLimit- the value for theusedLimitrecord componenthasMore- the value for thehasMorerecord componentnextOffset- the value for thenextOffsetrecord 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. -
notes
-
usedLimit
-
hasMore
-
nextOffset
Returns the value of thenextOffsetrecord component.- Returns:
- the value of the
nextOffsetrecord component
-