|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.data.DataCell
org.knime.core.data.collection.ListCell
public class ListCell
Default implementation of a CollectionDataValue
, whereby the
underlying data structure is a list.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.knime.core.data.collection.CollectionDataValue |
---|
CollectionDataValue.CollectionUtilityFactory |
Nested classes/interfaces inherited from interface org.knime.core.data.DataValue |
---|
DataValue.UtilityFactory |
Field Summary |
---|
Fields inherited from interface org.knime.core.data.collection.CollectionDataValue |
---|
UTILITY |
Constructor Summary | |
---|---|
protected |
ListCell(BlobSupportDataCellList list)
Rather use one of the factory methods. |
Method Summary | |
---|---|
boolean |
containsBlobWrapperCells()
Get whether the collection contains special BlobWrapperDataCell
(framework use). |
protected boolean |
equalsDataCell(DataCell dc)
Derived classes implement their specific equals function here. |
DataCell |
get(int index)
Returns the cell at the specified position in the list. |
static DataCellSerializer<ListCell> |
getCellSerializer()
Get serializer as required by DataCell . |
static DataType |
getCollectionType(DataType elementType)
Convenience method to determine the type of collection. |
DataType |
getElementType()
Get the common super type of all elements in this collection. |
protected BlobSupportDataCellList |
getList()
|
int |
hashCode()
This method must be implemented in order to ensure that two equal DataCell objects return the same hash code. |
Iterator<DataCell> |
iterator()
|
int |
size()
Get the number of elements in this collection. |
String |
toString()
Returns the String representation of this cell's value. |
Methods inherited from class org.knime.core.data.DataCell |
---|
equals, getType, isMissing |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected ListCell(BlobSupportDataCellList list)
list
- the list that will be taken over.CollectionCellFactory.createListCell(Collection)
,
CollectionCellFactory.createListCell(DataRow, int[])
Method Detail |
---|
public static final DataType getCollectionType(DataType elementType)
DataType.getType(ListCell.class, elementType)
.
elementType
- The type of the elements
public static final DataCellSerializer<ListCell> getCellSerializer()
DataCell
.
public DataType getElementType()
getElementType
in interface CollectionDataValue
public Iterator<DataCell> iterator()
iterator
in interface Iterable<DataCell>
iterator
in interface CollectionDataValue
public DataCell get(int index)
get
in interface ListDataValue
index
- the position of the element to return (first element has
index zero).
public int size()
size
in interface CollectionDataValue
public boolean containsBlobWrapperCells()
BlobWrapperDataCell
(framework use). This method gives a hint to the framwork (specifically
to the classes DataContainer
and BufferedDataContainer
) whether they should handle the cell implementing
this interface with care with respect to contained BlobDataCell
.
This method should return true
only if
CollectionDataValue.iterator()
implements
BlobSupportDataCellIterator
(which allows the framework to access
the BlobWrapperDataCell
without touching the contained
BlobDataCell
(which is an expensive operation) and BlobWrapperDataCell
.Implementation note: This method is really only a helper for the framework. The same information can be retrieved by accessing the iterator. This can be an expensive and unnecessary operation, however.
containsBlobWrapperCells
in interface CollectionDataValue
protected boolean equalsDataCell(DataCell dc)
null
or a missing value,
to be of the same class like this.
equalsDataCell
in class DataCell
dc
- the cell to compare this to
true
if this is equal to the argument,
false
if notpublic int hashCode()
DataCell
objects return the same hash code.
hashCode
in class DataCell
DataCell
Object.hashCode()
,
DataCell.equals(java.lang.Object)
public String toString()
toString
in class DataCell
protected BlobSupportDataCellList getList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |