1 package org.dbunit.assertion.comparer.value;
2
3 import org.dbunit.dataset.DataSetException;
4 import org.dbunit.dataset.ITable;
5
6 /**
7 * Create instances of a single or multi-column object, typically from the row
8 * in the table. This includes compound column primary keys.
9 *
10 * @author Jeff Jensen
11 *
12 * @param <T>
13 * The resulting type, possibly the primary key type.
14 * @since 2.6.0
15 */
16 @FunctionalInterface
17 public interface ValueFactory<T>
18 {
19 /**
20 * Make the instance from the row in the table.
21 *
22 * @param table
23 * The table containing the data.
24 * @param rowNum
25 * The row number to make the value for.
26 * @return The type.
27 * @throws DataSetException
28 */
29 T make(ITable table, int rowNum) throws DataSetException;
30 }