Modifier and Type | Method and Description |
---|---|
int |
compareTo(ItemProxy o) |
boolean |
equals(java.lang.Object o)
Check if this item is equal to another item.
|
int |
getId() |
BasicItem |
getItem(DbControl dc) |
Item |
getType() |
int |
hashCode()
The hash code is calculated from the
Item.getValue()
and the id. |
java.lang.String |
toString() |
private final Item type
private final int id
public ItemProxy(int id, Item type)
public int compareTo(ItemProxy o)
compareTo
in interface java.lang.Comparable<ItemProxy>
public java.lang.String toString()
toString
in class java.lang.Object
public final boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public final int hashCode()
Item.getValue()
and the id.hashCode
in class java.lang.Object
public int getId()
public Item getType()
public BasicItem getItem(DbControl dc) throws PermissionDeniedException, ItemNotFoundException, BaseException