Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.instance.model.impl
Class IndexInstanceReference

java.lang.Object
  extended by 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

Constructor Summary
IndexInstanceReference(DataSet dataSet, int index)
          Create a reference for an instance, using the given index
 
Method Summary
 boolean equals(Object obj)
           
 DataSet getDataSet()
          Get the data set the instance is associated to.
 int getIndex()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexInstanceReference

public IndexInstanceReference(DataSet dataSet,
                              int index)
Create a reference for an instance, using the given index

Parameters:
dataSet - the instance data set
index - the instance index
Method Detail

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)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d