public static final class IntCell.IntCellFactory extends Object implements DataCellFactory.FromSimpleString, DataCellFactory.FromComplexString
IntCell
s.DataCellFactory.FromComplexString, DataCellFactory.FromInputStream, DataCellFactory.FromReader, DataCellFactory.FromSimpleString, DataCellFactory.FromString
Modifier and Type | Field and Description |
---|---|
static DataType |
TYPE
The data type for the cells created by this factory.
|
Constructor and Description |
---|
IntCellFactory() |
Modifier and Type | Method and Description |
---|---|
static DataCell |
create(int i)
Creates a new int cell with the given value.
|
static DataCell |
create(String s)
Creates a new int cell by parsing the given string with
Integer.parseInt(String) . |
DataCell |
createCell(String s)
Creates a new data cell from a string.ata
|
DataType |
getDataType()
Returns the data type of the cells that this factory will create.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init
public static final DataType TYPE
public DataCell createCell(String s)
Integer.parseInt(String)
to convert the string into an int.createCell
in interface DataCellFactory.FromString
s
- a string, never null
public DataType getDataType()
getDataType
in interface DataCellFactory
null
public static DataCell create(String s)
Integer.parseInt(String)
.s
- a stringNumberFormatException
- if the string is not a valid integer numberpublic static DataCell create(int i)
i
- any int value
KNIME GmbH, Konstanz, Germany
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.