Record Class ShopCategory
java.lang.Object
java.lang.Record
fr.mathildeuh.youneedme.api.shop.ShopCategory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayNamerecord component.intReturns the value of thedisplayOrderrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.bukkit.Materialicon()Returns the value of theiconrecord component.id()Returns the value of theidrecord component.items()Returns the value of theitemsrecord component.@Nullable StringReturns the value of thepermissionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ShopCategory
public ShopCategory(String id, String displayName, org.bukkit.Material icon, int displayOrder, @Nullable @Nullable String permission, List<ShopItem> items) Creates an instance of aShopCategoryrecord class.- Parameters:
id- the value for theidrecord componentdisplayName- the value for thedisplayNamerecord componenticon- the value for theiconrecord componentdisplayOrder- the value for thedisplayOrderrecord componentpermission- the value for thepermissionrecord componentitems- the value for theitemsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
icon
public org.bukkit.Material icon()Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
displayOrder
public int displayOrder()Returns the value of thedisplayOrderrecord component.- Returns:
- the value of the
displayOrderrecord component
-
permission
Returns the value of thepermissionrecord component.- Returns:
- the value of the
permissionrecord component
-
items
-