Package de.aristaflow.adept2.util.time
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
-
-
Constructor Summary
Constructors Constructor Description DayOfYear(int month, int day)
Creates a new day of an unspecific year.DayOfYear(Calendar day)
Creates a new day of an unspecific year for the designated day, that is theCalendar.MONTH
and theCalendar.DAY_OF_MONTH
are incorporated..
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object otherObject)
Equality is based solely on the values of the month and day.int
hashCode()
Equality is based solely on the values of the month and day.
-
-
-
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 theCalendar.MONTH
and theCalendar.DAY_OF_MONTH
are incorporated..- Parameters:
day
- A calendar specifying the day of a year to create.
-
-