|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.data.RowKey
public final class RowKey
Key for a specific row which holds an identifier of type String
.
DataRow
Constructor Summary | |
---|---|
RowKey(String id)
Creates a row key based on a String . |
Method Summary | |
---|---|
static RowKey |
createRowKey(int rowIndex)
Factory method to create "default" row IDs based on the row index. |
boolean |
equals(Object obj)
|
String |
getString()
|
int |
hashCode()
|
static RowKey[] |
toRowKeys(String... strs)
Converts the given array of String s to an array of
RowKey elements by calling RowKey(String) . |
String |
toString()
|
static String[] |
toStrings(RowKey... rowKeys)
Converts the given array of RowKey s to an array of
String elements by calling getString() . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RowKey(String id)
String
.
id
- identifier for this key
NullPointerException
- if argument is null
Method Detail |
---|
public String getString()
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public static String[] toStrings(RowKey... rowKeys)
RowKey
s to an array of
String
elements by calling getString()
.
rowKeys
- an array of RowKey
elements which can be null
public static RowKey[] toRowKeys(String... strs)
String
s to an array of
RowKey
elements by calling RowKey(String)
.
strs
- an array of String
elements which can be null
RowKey
elementspublic static RowKey createRowKey(int rowIndex)
"Row" + rowIndex
.
rowIndex
- The index of the row, for which to generate a key.
The first row has index 0. Note that non-negative values for
rowIndex
are perfectly legal but not encouraged.
"Row" + rowIndex
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |