Package codes.grow.packages.skywalking
Record Class Paging
java.lang.Object
java.lang.Record
codes.grow.packages.skywalking.Paging
- Record Components:
pageNum- page number (1-based, default 1)pageSize- page size (1..10000, default 20)
1-based page selection of native trace and log queries. OAP returns no total and no cursor: a
page that comes back full may have a successor.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPaging(int pageNum, int pageSize) Creates an instance of aPagingrecord 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.static Pagingof(int pageNum, int pageSize) PagepageNumofpageSize.intpageNum()Returns the value of thepageNumrecord component.intpageSize()Returns the value of thepageSizerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT_PAGE_SIZE
public static final int DEFAULT_PAGE_SIZEDefault page size.- See Also:
-
DEFAULT
First page of 20.
-
-
Constructor Details
-
Method Details
-
of
PagepageNumofpageSize.- Parameters:
pageNum- page numberpageSize- page size- Returns:
- the paging
-
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 with '=='. -
pageNum
public int pageNum()Returns the value of thepageNumrecord component.- Returns:
- the value of the
pageNumrecord component
-
pageSize
public int pageSize()Returns the value of thepageSizerecord component.- Returns:
- the value of the
pageSizerecord component
-