Class QuotationsHelper

java.lang.Object
be.gaudry.model.edu.score.QuotationsHelper

public class QuotationsHelper extends Object
Since:
1.0 25 janv. 2009
Author:
Steph GAUDRY
  • Constructor Details

    • QuotationsHelper

      public QuotationsHelper()
      No need of instance
  • Method Details

    • putInPeriod

      public static boolean putInPeriod(Quotation quotation, Collection<Period> periods, Map<Period,​BasicScoreList> periodsQuotations)
      For a given quotation, checks into a given collection of periods if the date of the examination matches with a period.
      Pay attention than if more than one period is valid for the quotation, the quotation will be inserted only for the first (depending on the iterator provided by the collection) matching period.
      Parameters:
      quotation - Quotation to put in the periodsQuotations Map.
      periods - Collection of possible matching periods.
      periodsQuotations - Map maintaining the relation between AbstractScoreList and Period.
      Returns:
      true if the quotation has been inserted into the map, false otherwise.