public static final class LongCell.LongCellFactory extends Object implements DataCellFactory.FromSimpleString, DataCellFactory.FromComplexString
LongCell
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 |
---|
LongCellFactory() |
Modifier and Type | Method and Description |
---|---|
static DataCell |
create(int l)
Creates a new long cell with the given value.
|
static DataCell |
create(long l)
Creates a new long cell with the given value.
|
static DataCell |
create(String s)
Creates a new long cell by parsing the given string with
Long.parseLong(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)
Long.parseLong(String)
to convert the string into a long.createCell
in interface DataCellFactory.FromString
s
- a string, never null
public DataType getDataType()
getDataType
in interface DataCellFactory
null
public static DataCell create(String s)
Long.parseLong(String)
.s
- a stringNumberFormatException
- if the string is not a valid long numberpublic static DataCell create(int l)
l
- any integer valuepublic static DataCell create(long l)
l
- any long 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.