Package jenkins.model.dashboard
Record Class ItemListTab.Page
java.lang.Object
java.lang.Record
jenkins.model.dashboard.ItemListTab.Page
- Record Components:
items- the items on this pagenextStart- thestartof the next page, ornullif this is the last onesearch- whether the page holds search results, which are shown with their full names
- Enclosing class:
ItemListTab
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public static record ItemListTab.Page(List<Item> items, Integer nextStart, boolean search)
extends Record
One page of items.
-
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.items()Returns the value of theitemsrecord component.Returns the value of thenextStartrecord component.booleansearch()Returns the value of thesearchrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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 '=='. -
items
Returns the value of theitemsrecord component.- Returns:
- the value of the
itemsrecord component
-
nextStart
Returns the value of thenextStartrecord component.- Returns:
- the value of the
nextStartrecord component
-
search
public boolean search()Returns the value of thesearchrecord component.- Returns:
- the value of the
searchrecord component
-