com.timeindexing.data
Class DoubleItem

java.lang.Object
  extended by com.timeindexing.data.AbstractDataItem
      extended by com.timeindexing.data.DoubleItem
All Implemented Interfaces:
DataItem

public class DoubleItem
extends AbstractDataItem
implements DataItem

A item of data presented by a data reader This is an implementation of DoubleItem.


Constructor Summary
DoubleItem(double d)
          Construct a DoubleItem from a double
DoubleItem(java.lang.Double d)
          Construct a DoubleItem from an Double
 
Method Summary
 java.nio.ByteBuffer getBytes()
          Get the data itself
 DataType getDataType()
          Get the DataType of the DataItem.
 java.lang.Object getObject()
          Get the Double object from this DoubleItem.
 long getSize()
          Get the size of the item
 
Methods inherited from class com.timeindexing.data.AbstractDataItem
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DoubleItem

public DoubleItem(double d)
Construct a DoubleItem from a double


DoubleItem

public DoubleItem(java.lang.Double d)
Construct a DoubleItem from an Double

Method Detail

getBytes

public java.nio.ByteBuffer getBytes()
Get the data itself

Specified by:
getBytes in interface DataItem

getSize

public long getSize()
Get the size of the item

Specified by:
getSize in interface DataItem

getDataType

public DataType getDataType()
Get the DataType of the DataItem.

Specified by:
getDataType in interface DataItem

getObject

public java.lang.Object getObject()
Get the Double object from this DoubleItem.

Specified by:
getObject in interface DataItem
Returns:
a Double


Timeindexing 2008