Record Class Pagination
java.lang.Object
java.lang.Record
io.quarkiverse.openfga.client.utils.Pagination
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPagination(Integer pageSize, Optional<String> continuationToken) Creates an instance of aPaginationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionandContinuingFrom(String continuationToken) andLimitedTo(Integer pageSize) Returns the value of thecontinuationTokenrecord component.static PaginationcontinuingFrom(String continuationToken) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static PaginationpageSize()Returns the value of thepageSizerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
-
MAX
-
-
Constructor Details
-
Pagination
Creates an instance of aPaginationrecord class.- Parameters:
pageSize- the value for thepageSizerecord componentcontinuationToken- the value for thecontinuationTokenrecord component
-
-
Method Details
-
limitedTo
-
continuingFrom
-
andLimitedTo
-
andContinuingFrom
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
pageSize
Returns the value of thepageSizerecord component.- Returns:
- the value of the
pageSizerecord component
-
continuationToken
Returns the value of thecontinuationTokenrecord component.- Returns:
- the value of the
continuationTokenrecord component
-