Record Class PagedSection
java.lang.Object
java.lang.Record
com.github.darksoulq.ner.model.PagedSection
public record PagedSection(int[] slots, List<org.bukkit.inventory.ItemStack> items, SectionButton prevButton, SectionButton nextButton)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPagedSection(int[] slots, List<org.bukkit.inventory.ItemStack> items, SectionButton prevButton, SectionButton nextButton) Creates an instance of aPagedSectionrecord 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.List<org.bukkit.inventory.ItemStack> items()Returns the value of theitemsrecord component.Returns the value of thenextButtonrecord component.Returns the value of theprevButtonrecord component.int[]slots()Returns the value of theslotsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PagedSection
public PagedSection(int[] slots, List<org.bukkit.inventory.ItemStack> items, SectionButton prevButton, SectionButton nextButton) Creates an instance of aPagedSectionrecord class.- Parameters:
slots- the value for theslotsrecord componentitems- the value for theitemsrecord componentprevButton- the value for theprevButtonrecord componentnextButton- the value for thenextButtonrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
slots
public int[] slots()Returns the value of theslotsrecord component.- Returns:
- the value of the
slotsrecord component
-
items
Returns the value of theitemsrecord component.- Returns:
- the value of the
itemsrecord component
-
prevButton
Returns the value of theprevButtonrecord component.- Returns:
- the value of the
prevButtonrecord component
-
nextButton
Returns the value of thenextButtonrecord component.- Returns:
- the value of the
nextButtonrecord component
-