Record Class Page<T>
java.lang.Object
java.lang.Record
kr.paysync.sdk.Page<T>
- Type Parameters:
T- 항목 타입- Record Components:
items- 이 페이지의 항목totalItems- 조건에 맞는 전체 항목 수offset- 이 페이지를 조회할 때 건너뛴 항목 수limit- 이 페이지를 조회할 때 요청한 항목 수
-
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.boolean다음 페이지가 있으면 true입니다.items()Returns the value of theitemsrecord component.intlimit()Returns the value of thelimitrecord component.long다음 페이지를 조회할 때 쓸offset입니다.longoffset()Returns the value of theoffsetrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalItemsrecord component.
-
Constructor Details
-
Page
Creates an instance of aPagerecord class.- Parameters:
items- the value for theitemsrecord componenttotalItems- the value for thetotalItemsrecord componentoffset- the value for theoffsetrecord componentlimit- the value for thelimitrecord component
-
-
Method Details
-
hasNextPage
public boolean hasNextPage()다음 페이지가 있으면 true입니다. -
nextOffset
public long nextOffset()다음 페이지를 조회할 때 쓸offset입니다. -
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. -
items
-
totalItems
public long totalItems()Returns the value of thetotalItemsrecord component.- Returns:
- the value of the
totalItemsrecord component
-
offset
-
limit
-