public class ItemProxy extends Object implements Comparable<ItemProxy>
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ItemProxy o) |
boolean |
equals(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. |
String |
toString() |
private final Item type
private final int id
public ItemProxy(int id, Item type)
public int compareTo(ItemProxy o)
compareTo
in interface Comparable<ItemProxy>
public final boolean equals(Object o)
public final int hashCode()
Item.getValue()
and the id.public int getId()
public Item getType()
public BasicItem getItem(DbControl dc) throws PermissionDeniedException, ItemNotFoundException, BaseException