@Test public void testEquals() { TestHelper.load(); ItemRegistry.itemList().forEach(item -> { assert ItemRegistry.getItem(item).equals(ItemRegistry.getItem(item)); }); }
public boolean equals(Item item) { return null == item || id.equals(item.id) && name.equals(item.name) && sprite.getSpriteId() == item.sprite.getSpriteId() && description.equals(item.description) && type.name().equals(item.type.name()) && rarity == item.rarity && tradeable == item.tradeable && consumable == item.consumable && degradable == item.degradable; }
Item { public boolean equals(Item item) { return null == item || id.equals(item.id) && name.equals(item.name) && sprite.getSpriteId() == item.sprite.getSpriteId() && description.equals(item.description) && type.name().equals(item.type.name()) && rarity == item.rarity && tradeable == item.tradeable && consumable == item.consumable && degradable == item.degradable; } }
Item { public boolean equals(Item item) { return null == item || id.equals(item.id) && name.equals(item.name) && sprite.getSpriteId() == item.sprite.getSpriteId() && description.equals(item.description) && type.name().equals(item.type.name()) && rarity == item.rarity && tradeable == item.tradeable && consumable == item.consumable && degradable == item.degradable; } protected  Item(Builder builder); }
Item { public boolean equals(Item item) { return null == item || id.equals(item.id) && name.equals(item.name) && sprite.getSpriteId() == item.sprite.getSpriteId() && description.equals(item.description) && type.name().equals(item.type.name()) && rarity == item.rarity && tradeable == item.tradeable && consumable == item.consumable && degradable == item.degradable; } protected  Item(Builder builder); boolean equals(Item item); String getID(); String getName(); Sprite getSprite(); String getDescription(); ItemType getType(); int getValue(); double getRarity(); boolean isTradeable(); boolean isStackable(); boolean isConsumable(); boolean isDegradable(); }
Item { public boolean equals(Item item) { return null == item || id.equals(item.id) && name.equals(item.name) && sprite.getSpriteId() == item.sprite.getSpriteId() && description.equals(item.description) && type.name().equals(item.type.name()) && rarity == item.rarity && tradeable == item.tradeable && consumable == item.consumable && degradable == item.degradable; } protected  Item(Builder builder); boolean equals(Item item); String getID(); String getName(); Sprite getSprite(); String getDescription(); ItemType getType(); int getValue(); double getRarity(); boolean isTradeable(); boolean isStackable(); boolean isConsumable(); boolean isDegradable();  }