return indexToRowMap.get(Integer.valueOf(rowIndex));
}
- @Override
+ /**
+ * Retrieves the index for given row object.
+ * <p>
+ * <em>Note:</em> This method does not verify that the given row object
+ * exists at all in this DataSource.
+ *
+ * @param row
+ * the row object
+ * @return index of the row; or <code>-1</code> if row is not available
+ */
public int indexOf(T row) {
Object key = getRowKey(row);
if (keyToIndexMap.containsKey(key)) {
* means that the row is not currently in this data source's cache.
*/
public RowHandle<T> getHandle(T row);
-
- /**
- * Retrieves the index for given row object.
- * <p>
- * <em>Note:</em> This method does not verify that the given row object
- * exists at all in this DataSource.
- *
- * @param row
- * the row object
- * @return index of the row; or <code>-1</code> if row is not available
- */
- int indexOf(T row);
}
}
}
- @Override
+ /**
+ * Retrieves the index for given row object.
+ * <p>
+ * <em>Note:</em> This method does not verify that the given row object
+ * exists at all in this DataSource.
+ *
+ * @param row
+ * the row object
+ * @return index of the row; or <code>-1</code> if row is not available
+ */
public int indexOf(T row) {
return ds.indexOf(row);
}
// TODO Auto-generated method stub (henrik paul: 17.6.)
return null;
}
-
- @Override
- public int indexOf(String row) {
- return ds.indexOf(row);
- }
}
@Override