Record Class NoteVersionCollectionModel
java.lang.Object
java.lang.Record
io.meeds.notes.mcp.model.NoteVersionCollectionModel
- Record Components:
versions- the versions of the page, without their contentusedLimit- the most versions the page holds, after the requested limit was clampedhasMore- whether more versions follow this pagenextOffset- the offset of the next page, null when there is none
public record NoteVersionCollectionModel(List<NoteVersionModel> versions, int usedLimit, boolean hasMore, Integer nextOffset)
extends Record
A page of a note's version history, as
get_note_versions returns
it.-
Constructor Summary
ConstructorsConstructorDescriptionNoteVersionCollectionModel(List<NoteVersionModel> versions, int usedLimit, boolean hasMore, Integer nextOffset) Creates an instance of aNoteVersionCollectionModelrecord 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.final StringtoString()Returns a string representation of this record class.intReturns the value of theusedLimitrecord component.versions()Returns the value of theversionsrecord component.
-
Constructor Details
-
NoteVersionCollectionModel
public NoteVersionCollectionModel(List<NoteVersionModel> versions, int usedLimit, boolean hasMore, Integer nextOffset) Creates an instance of aNoteVersionCollectionModelrecord class.- Parameters:
versions- the value for theversionsrecord 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. -
versions
-
usedLimit
-
hasMore
-
nextOffset
Returns the value of thenextOffsetrecord component.- Returns:
- the value of the
nextOffsetrecord component
-