package com.h20.course.tp1;

import java.util.ArrayList;
import java.util.List;

/**
 * This file just implements a driver to fill an example list to be used in the
 * first part of the homework.
 *
 * @author fpereira
 *
 */
public final class EntryMaker {
  /**
   * This is the number of entries that we will have in our stub list.
   */
  private static final int NUM_ENTRIES = 5;


  /**
   * This is the list that will be used to fill the first part of the homework.
   */
  private static List<Entry> entries;

  static {
    entries = new ArrayList<Entry>(NUM_ENTRIES);
    entries.add(new EntryImpl("Person A", "3138611000"));
    entries.add(new EntryImpl("Person B", "3138611001"));
    entries.add(new EntryImpl("Person C", "3138611002"));
    entries.add(new EntryImpl("Person D", "3138611003"));
    entries.add(new EntryImpl("Person E", "3138611004"));
  }

  /**
   * This method returns the list of entries that we will use to test our
   * application.
   *
   * @return a list of entries.
   */
  public static List<Entry> getEntries() {
    return entries;
  }

  /**
   * Utility classes are not meant to be instantiated, so we have a private
   * constructor, to prevent someone from instantiating this class.
   *
   */
  private EntryMaker() {
  }
}
