Class DataCollectionTemplateGanttHelper

java.lang.Object
overit.geocallapp.wfm.core.ux.datacollection.template.gantt.utils.DataCollectionTemplateGanttHelper

public class DataCollectionTemplateGanttHelper extends Object
The Class that defines the data collection template gantt helper.
Since:
12.0
  • Field Details

    • MILLIS_PER_SECOND

      public static final Long MILLIS_PER_SECOND
    • MINUTE_PER_DAY

      public static final Long MINUTE_PER_DAY
    • IS_CURRENT_RELEASE

      public static final String IS_CURRENT_RELEASE
      See Also:
  • Method Details

    • getAvarage

      public static Long getAvarage(List<Date> dates)
      Returns the data collection template gantt helper average.
      Parameters:
      dates - list of date elements
      Returns:
      the data collection template gantt helper avarage
    • differenceBetweenDate

      public static Long differenceBetweenDate(Date date1, Date date2)
      Returns the difference between date.
      Parameters:
      date1 - the date 1
      date2 - the date 2
      Returns:
      the long
    • average

      public static Double average(List<Long> diffs)
      Returns the average.
      Parameters:
      diffs - list of long elements
      Returns:
      the double