Package net.sf.basedb.core
Class ItemProxy
- java.lang.Object
-
- net.sf.basedb.core.ItemProxy
-
- All Implemented Interfaces:
Comparable<ItemProxy>
public class ItemProxy extends Object implements Comparable<ItemProxy>
- Version:
- 2.2
- Author:
- nicklas
- Last modified
- $Date: 2012-09-14 09:28:35 +0200 (fr, 14 sep 2012) $
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 theItem.getValue()
and the id.String
toString()
-
-
-
Field Detail
-
type
private final Item type
-
id
private final int id
-
-
Constructor Detail
-
ItemProxy
public ItemProxy(int id, Item type)
-
-
Method Detail
-
compareTo
public int compareTo(ItemProxy o)
- Specified by:
compareTo
in interfaceComparable<ItemProxy>
-
equals
public final boolean equals(Object o)
Check if this item is equal to another item. They are considered to be equal if they are of the same type and have the same id.
-
hashCode
public final int hashCode()
The hash code is calculated from theItem.getValue()
and the id.
-
getId
public int getId()
-
getType
public Item getType()
-
getItem
public BasicItem getItem(DbControl dc) throws PermissionDeniedException, ItemNotFoundException, BaseException
-
-