Class CalendarTools.DayOfYear

  • Enclosing class:
    CalendarTools

    public static class CalendarTools.DayOfYear
    extends Object
    Represents a day of an unspecific year, that is just a month and a day.
    Author:
    Ulrich Kreher
    • Field Detail

      • month

        public int month
        The month of the day of a unspecific year.
      • day

        public int day
        The day (of a month) of a unspecific year.
    • Constructor Detail

      • DayOfYear

        public DayOfYear​(int month,
                         int day)
        Creates a new day of an unspecific year.
        Parameters:
        month - The month of the day of a unspecific year.
        day - The day (of a month) of a unspecific year.
      • DayOfYear

        public DayOfYear​(Calendar day)
        Creates a new day of an unspecific year for the designated day, that is the Calendar.MONTH and the Calendar.DAY_OF_MONTH are incorporated..
        Parameters:
        day - A calendar specifying the day of a year to create.
    • Method Detail

      • hashCode

        public int hashCode()
        Equality is based solely on the values of the month and day.
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object otherObject)
        Equality is based solely on the values of the month and day.
        Overrides:
        equals in class Object