Record Class PagedModel.PageMetadata
java.lang.Object
java.lang.Record
com.broadleafcommerce.search.api.domain.PagedModel.PageMetadata
- Enclosing class:
- PagedModel<T>
public static record PagedModel.PageMetadata(long pageSize, long pageNumber, long offset, boolean paged, boolean unpaged, org.springframework.data.domain.Sort sort)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPageMetadata(long pageSize, long pageNumber, long offset, boolean paged, boolean unpaged, org.springframework.data.domain.Sort sort) Creates an instance of aPageMetadatarecord 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.longoffset()Returns the value of theoffsetrecord component.booleanpaged()Returns the value of thepagedrecord component.longReturns the value of thepageNumberrecord component.longpageSize()Returns the value of thepageSizerecord component.org.springframework.data.domain.Sortsort()Returns the value of thesortrecord component.final StringtoString()Returns a string representation of this record class.booleanunpaged()Returns the value of theunpagedrecord component.
-
Constructor Details
-
PageMetadata
public PageMetadata(long pageSize, long pageNumber, long offset, boolean paged, boolean unpaged, org.springframework.data.domain.Sort sort) Creates an instance of aPageMetadatarecord class.- Parameters:
pageSize- the value for thepageSizerecord componentpageNumber- the value for thepageNumberrecord componentoffset- the value for theoffsetrecord componentpaged- the value for thepagedrecord componentunpaged- the value for theunpagedrecord componentsort- the value for thesortrecord 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 '=='. -
pageSize
public long pageSize()Returns the value of thepageSizerecord component.- Returns:
- the value of the
pageSizerecord component
-
pageNumber
public long pageNumber()Returns the value of thepageNumberrecord component.- Returns:
- the value of the
pageNumberrecord component
-
offset
public long offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
paged
public boolean paged()Returns the value of thepagedrecord component.- Returns:
- the value of the
pagedrecord component
-
unpaged
public boolean unpaged()Returns the value of theunpagedrecord component.- Returns:
- the value of the
unpagedrecord component
-
sort
public org.springframework.data.domain.Sort sort()Returns the value of thesortrecord component.- Returns:
- the value of the
sortrecord component
-