@StorableClass public class Item extends Object implements Cloneable
Constructor and Description |
---|
Item()
default constructor to make this persistable
|
Item(int identifier,
ItemTemplate itemTemplate) |
Item(int identifier,
ItemTemplate itemTemplate,
String value) |
Item(Item item)
copy constructor
|
Modifier and Type | Method and Description |
---|---|
Item |
clone() |
boolean |
equals(Object obj) |
int |
getIdentifier() |
EnumItemState |
getItemState() |
ItemTemplate |
getItemTemplate() |
String |
getValue() |
int |
hashCode() |
void |
setItemState(EnumItemState itemState) |
void |
setValue(String value) |
String |
toString() |
public Item()
public Item(int identifier, ItemTemplate itemTemplate)
public Item(int identifier, ItemTemplate itemTemplate, String value)
public Item(Item item)
item
- public String getValue()
public void setValue(String value)
public int getIdentifier()
public ItemTemplate getItemTemplate()
public EnumItemState getItemState()
public void setItemState(EnumItemState itemState)
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.