gov.nih.nci.caarray.external.v1_0.data
Class AbstractDataColumn

java.lang.Object
  extended by gov.nih.nci.caarray.external.v1_0.data.AbstractDataColumn
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable
Direct Known Subclasses:
BooleanColumn, DoubleColumn, FloatColumn, IntegerColumn, LongColumn, ShortColumn, StringColumn

public abstract class AbstractDataColumn
extends java.lang.Object
implements java.io.Externalizable

An AbstractDataColumn represents a list of values for a particular measurement within a hybridization data set. There are subclasses of this class for different value types (e.g. integers, floats, booleans, etc).

Author:
dkokotov
See Also:
Serialized Form

Field Summary
protected static java.lang.String SEPARATOR
          separator to use for encoding an array of values as string, except for StringColumn.
 
Constructor Summary
AbstractDataColumn()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 QuantitationType getQuantitationType()
           
protected abstract  java.io.Serializable getSerializableValues()
          Get the values array of this column.
 int hashCode()
          
 void readExternal(java.io.ObjectInput oi)
          Optimizes the serialized form of this class by compressing the values array.
 void setQuantitationType(QuantitationType quantitationType)
           
protected abstract  void setSerializableValues(java.io.Serializable values)
          Set the values array of this column.
 void writeExternal(java.io.ObjectOutput oo)
          Optimizes the serialized form of this class by compressing the values array.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEPARATOR

protected static final java.lang.String SEPARATOR
separator to use for encoding an array of values as string, except for StringColumn.

See Also:
Constant Field Values
Constructor Detail

AbstractDataColumn

public AbstractDataColumn()
Method Detail

getQuantitationType

public QuantitationType getQuantitationType()
Returns:
the value type of values in this column

setQuantitationType

public void setQuantitationType(QuantitationType quantitationType)
Parameters:
quantitationType - the quantitationType to set

writeExternal

public void writeExternal(java.io.ObjectOutput oo)
                   throws java.io.IOException
Optimizes the serialized form of this class by compressing the values array.

Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput oi)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Optimizes the serialized form of this class by compressing the values array.

Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

getSerializableValues

protected abstract java.io.Serializable getSerializableValues()
Get the values array of this column. This should be implemented by a simple call to getValues in the subclasses; this separate method is only needed because generics do not work well with primitive arrays.

Returns:
the values array for this column

setSerializableValues

protected abstract void setSerializableValues(java.io.Serializable values)
Set the values array of this column. This should be implemented by a simple call to setValues in the subclasses; this separate method is only needed because generics do not work well with primitive arrays.

Parameters:
values - the values array to set

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object