Class Item

    • Constructor Detail

      • Item

        public Item​(int itemID,
                    String name)
      • Item

        public Item​(int itemID,
                    String name,
                    String label)
        Create a new item with the given identifier and name.
        Parameters:
        itemID - unique item identifier
        name - item name
    • Method Detail

      • getItemID

        public int getItemID()
        Get the item identifier.
        Returns:
        item identifier
      • getName

        public String getName()
        Get the item name.
        Returns:
        item name
      • getLabel

        public String getLabel()
        Get the item label.
        Returns:
        item label
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object