Class CalendarTools.DayOfYear

java.lang.Object
de.aristaflow.adept2.util.time.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 Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    The day (of a month) of a unspecific year.
    int
    The month of the day of a unspecific year.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DayOfYear(int month, int day)
    Creates a new day of an unspecific year.
    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..
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object otherObject)
    Equality is based solely on the values of the month and day.
    int
    Equality is based solely on the values of the month and day.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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 Details

    • 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 Details

    • 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