Package dataLoad
Class DishLoader
- java.lang.Object
-
- dataLoad.AbstractRecordLoader<Dish>
-
- dataLoad.DishLoader
-
public class DishLoader extends AbstractRecordLoader<Dish>
DishLoader
Class responsible for reading the data from an input file that contains information about dishes.- Since:
- 2017-07-22
- Version:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description DishLoader()
-
Method Summary
Modifier and Type Method 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.-
Methods inherited from class dataLoad.AbstractRecordLoader
load
-
-
-
-
Method Detail
-
constructObjectFromRow
public int constructObjectFromRow(java.lang.String[] tokens, java.util.ArrayList<Dish> menu)
Adds a record in the input list given the tokens of a row.- Specified by:
constructObjectFromRow
in classAbstractRecordLoader<Dish>
- Parameters:
tokens
- : a list of fields from a row of the input filemenu
- : list which holds the information about the dishes- Returns:
- 0
-
-