org.knime.core.data.container
Class CellClassInfo

java.lang.Object
  extended by org.knime.core.data.container.CellClassInfo

final class CellClassInfo
extends Object

Pair of cell class and possibly a DataType that represents the collection element type (only if cell class is a collection).

Author:
Bernd Wiswedel, University of Konstanz

Method Summary
 boolean equals(Object obj)
          
(package private) static CellClassInfo get(Class<? extends DataCell> cellClass, DataType collectionElementType)
          Same as get(DataCell), only with resolved arguments.
(package private) static CellClassInfo get(DataCell cell)
          Access method to retrieve the CellClassInfo for a given DataCell.
(package private)  Class<? extends DataCell> getCellClass()
           
(package private)  DataType getCollectionElementType()
           
(package private)  DataType getDataType()
          Get the DataType of the underlying cell.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

get

static CellClassInfo get(DataCell cell)
Access method to retrieve the CellClassInfo for a given DataCell. Used to avoid overhead of creating a new object for each DataCell being added to a buffer.

Parameters:
cell - The argument cell
Returns:
The representing cell class info.

get

static CellClassInfo get(Class<? extends DataCell> cellClass,
                         DataType collectionElementType)
Same as get(DataCell), only with resolved arguments.

Parameters:
cellClass - Class of DataCell
collectionElementType - DataType of collection elements if the cell class is an instance of CollectionDataValue.
Returns:
The representing CellClassInfo

getCollectionElementType

DataType getCollectionElementType()
Returns:
the collectionElementType or null if this represent not a collection cell.

getCellClass

Class<? extends DataCell> getCellClass()
Returns:
the cellClass

getDataType

DataType getDataType()
Get the DataType of the underlying cell.

Returns:
The associated DataType.

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.