public class DishLoader extends AbstractRecordLoader<Dish>
Constructor and Description |
---|
DishLoader() |
Modifier and Type | Method and Description |
---|---|
int |
constructObjectFromRow(java.lang.String[] tokens,
java.util.ArrayList<Dish> menu)
Adds a record in the input list given the tokens of a
row.
|
load
public int constructObjectFromRow(java.lang.String[] tokens, java.util.ArrayList<Dish> menu)
constructObjectFromRow
in class AbstractRecordLoader<Dish>
tokens:
- a list of fields from a row of the input filemenu:
- list which holds the information about the dishes