|
||||||||||
| 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 Strings to an array of
RowKey elements by calling RowKey(String). |
String |
toString()
|
static String[] |
toStrings(RowKey... rowKeys)
Converts the given array of RowKeys 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 Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic static String[] toStrings(RowKey... rowKeys)
RowKeys 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)
Strings 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 | |||||||||