Package dataLoad

Class 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 java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DishLoader

        public DishLoader()
    • 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 class AbstractRecordLoader<Dish>
        Parameters:
        tokens - : a list of fields from a row of the input file
        menu - : list which holds the information about the dishes
        Returns:
        0