Record Class GuiEntry.ItemEntry
java.lang.Object
java.lang.Record
com.github.darksoulq.ner.model.GuiEntry.ItemEntry
- All Implemented Interfaces:
GuiEntry
- Enclosing interface:
GuiEntry
-
Nested Class Summary
Nested classes/interfaces inherited from interface GuiEntry
GuiEntry.GroupCollapseEntry, GuiEntry.GroupEntry, GuiEntry.ItemEntry -
Constructor Summary
ConstructorsConstructorDescriptionItemEntry(org.bukkit.inventory.ItemStack item) Creates an instance of aItemEntryrecord 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.org.bukkit.inventory.ItemStackitem()Returns the value of theitemrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ItemEntry
public ItemEntry(org.bukkit.inventory.ItemStack item) Creates an instance of aItemEntryrecord class.- Parameters:
item- the value for theitemrecord 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). -
item
public org.bukkit.inventory.ItemStack item()Returns the value of theitemrecord component.- Returns:
- the value of the
itemrecord component
-