Class BirthRecordFactory

java.lang.Object
com.github.jamesross03.pop_parser.utils.RecordFactory<BirthRecord>
com.github.jamesross03.pop_parser.utils.factories.BirthRecordFactory

public class BirthRecordFactory extends RecordFactory<BirthRecord>
RecordFactory subclass for making BirthRecord objects from a line of CSV input.
  • Constructor Details

    • BirthRecordFactory

      public BirthRecordFactory(RecordFormat format)
  • Method Details

    • makeRecord

      public BirthRecord makeRecord(Map<String,String> entry)
      Description copied from class: RecordFactory
      Takes a map of attribute names and their corresponding values, representing a line read in from a record file, and uses them to create a new Record object of subclass T.
      Specified by:
      makeRecord in class RecordFactory<BirthRecord>
      Parameters:
      entry - Map of <key, value> pairs from a line of input
      Returns:
      generated T instance