Record Class SubSpacesPageModel
java.lang.Object
java.lang.Record
io.meeds.mcp.server.tool.model.SubSpacesPageModel
- Record Components:
subSpaces- the sub-spaces of the page, possibly fewer than the limit asked while more follownextOffset- the offset the next page starts at, null when the list has endedhasMore- true when more sub-spaces may follow, that is whennextOffsetis not null: a page that ends exactly at the end of the list still says it, and the next page is then empty
public record SubSpacesPageModel(List<SpaceModel> subSpaces, Integer nextOffset, boolean hasMore)
extends Record
A page of sub-spaces.
-
Constructor Summary
ConstructorsConstructorDescriptionSubSpacesPageModel(List<SpaceModel> subSpaces, Integer nextOffset) SubSpacesPageModel(List<SpaceModel> subSpaces, Integer nextOffset, boolean hasMore) Creates an instance of aSubSpacesPageModelrecord 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.Returns the value of thesubSpacesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SubSpacesPageModel
- Parameters:
subSpaces- the sub-spaces of the pagenextOffset- the offset the next page starts at, null when the list has ended
-
SubSpacesPageModel
Creates an instance of aSubSpacesPageModelrecord class.- Parameters:
subSpaces- the value for thesubSpacesrecord componentnextOffset- the value for thenextOffsetrecord componenthasMore- the value for thehasMorerecord 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. -
subSpaces
-
nextOffset
Returns the value of thenextOffsetrecord component.- Returns:
- the value of the
nextOffsetrecord component
-
hasMore
-