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