eu.esdihumboldt.hale.common.instance.model.impl
Class IndexInstanceReference
java.lang.Object
eu.esdihumboldt.hale.common.instance.model.impl.IndexInstanceReference
- All Implemented Interfaces:
- InstanceReference
public class IndexInstanceReference
- extends Object
- implements InstanceReference
Instance reference based on an integer index.
- Author:
- Simon Templer
IndexInstanceReference
public IndexInstanceReference(DataSet dataSet,
int index)
- Create a reference for an instance, using the given index
- Parameters:
dataSet
- the instance data setindex
- the instance index
getDataSet
public DataSet getDataSet()
- Description copied from interface:
InstanceReference
- Get the data set the instance is associated to.
- Specified by:
getDataSet
in interface InstanceReference
- Returns:
- the instance data set,
null
if not set - See Also:
InstanceReference.getDataSet()
getIndex
public int getIndex()
- Returns:
- the index
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
- See Also:
Object.hashCode()
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
- See Also:
Object.equals(java.lang.Object)
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d