Class CalendarHelper


  • public final class CalendarHelper
    extends java.lang.Object
    Static class containing helper methods for dates and calendar operations.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Calendar getCalendarResetTime()
      Method for obtaining a calendar instance with time values set to 0.
      static java.util.Calendar parseDate​(java.lang.String month, java.lang.String year)
      Method allowing to parse date from String parameters representing a month and a year
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • parseDate

        public static java.util.Calendar parseDate​(java.lang.String month,
                                                   java.lang.String year)
        Method allowing to parse date from String parameters representing a month and a year
        Parameters:
        month - to parse
        year - to parse
        Returns:
        Calendar with the proper date or null for incorrect parameters
      • getCalendarResetTime

        public static java.util.Calendar getCalendarResetTime()
        Method for obtaining a calendar instance with time values set to 0.
        Returns:
        a Calendar object.