Package su.onno.ui
Record Class KeysetPage
java.lang.Object
java.lang.Record
su.onno.ui.KeysetPage
- Record Components:
rows- the decorated rows for this window (refs resolved, secrets redacted)nextCursor- the opaque cursor for the next window, ornullat the end of the listhasMore- whether a further window exists
public record KeysetPage(List<Map<String,Object>> rows, String nextCursor, boolean hasMore)
extends Record
One keyset-paginated window: the decorated rows plus the
nextCursor a client echoes back
to fetch the following window, and whether any rows remain. nextCursor is null
exactly when hasMore is false (the end of the list), so a client loops "fetch, render,
repeat while nextCursor != null" with no count and no offset arithmetic.-
Constructor Summary
Constructors -
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 thenextCursorrecord component.rows()Returns the value of therowsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KeysetPage
Creates an instance of aKeysetPagerecord class.- Parameters:
rows- the value for therowsrecord componentnextCursor- the value for thenextCursorrecord componenthasMore- the value for thehasMorerecord 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 '=='. -
rows
Returns the value of therowsrecord component.- Returns:
- the value of the
rowsrecord component
-
nextCursor
Returns the value of thenextCursorrecord component.- Returns:
- the value of the
nextCursorrecord component
-
hasMore
public boolean hasMore()Returns the value of thehasMorerecord component.- Returns:
- the value of the
hasMorerecord component
-