Package se.diabol.jenkins.pipeline.model
Record Class Paging
java.lang.Object
java.lang.Record
se.diabol.jenkins.pipeline.model.Paging
- Record Components:
page- the current page, starting at 1pageSize- pipelines per pagetotal- number of pipelines there are
@ExportedBean(defaultVisibility=100)
public record Paging(int page, int pageSize, int total)
extends Record
Where a component's pipelines are in the list of all of them.
-
Constructor Summary
ConstructorsConstructorDescriptionPaging(int page, int pageSize, int total) 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.intoffset()Index of the first pipeline of the page.intpage()Returns the value of thepagerecord component.intpages()intpageSize()Returns the value of thepageSizerecord component.final StringtoString()Returns a string representation of this record class.inttotal()Returns the value of thetotalrecord component.
-
Constructor Details
-
Method Details
-
pages
@Exported public int pages() -
offset
public int offset()Index of the first pipeline of the page. -
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 '=='. -
page
@Exported public int page()Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-
pageSize
@Exported public int pageSize()Returns the value of thepageSizerecord component.- Returns:
- the value of the
pageSizerecord component
-
total
@Exported public int total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-