public class MonthYear extends Object
Constructor and Description |
---|
MonthYear()
Constructor.
|
MonthYear(int year,
int month)
Constructor.
|
MonthYear(int year,
int month,
int day)
Constructor.
|
MonthYear(int year,
int month,
int day,
int week)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getDay()
Gets a day part of the date.
|
int |
getMonth()
Gets a month part of the date.
|
int |
getWeek()
Gets a week part of the date.
|
int |
getYear()
Gets a year part of the date.
|
int |
hashCode() |
void |
setDay(int day)
Sets a day part of the date.
|
void |
setMonth(int month)
Sets a month part of the date.
|
void |
setWeek(int week)
Sets a week part of the date.
|
void |
setYear(int year)
Sets a year part of the date.
|
String |
toString() |
public MonthYear()
public MonthYear(int year, int month)
year
- yearmonth
- monthpublic MonthYear(int year, int month, int day)
year
- yearmonth
- monthday
- daypublic MonthYear(int year, int month, int day, int week)
year
- yearmonth
- monthday
- dayweek
- weekpublic int getYear()
public void setYear(int year)
year
- a year part of the datepublic int getMonth()
public void setMonth(int month)
month
- a month part of the datepublic int getDay()
public void setDay(int day)
day
- a day part of the datepublic int getWeek()
public void setWeek(int week)
week
- a week part of the dateCopyright © 2005–2024 Onix Solutions. All rights reserved.