|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ghasemkiani.util.DateFields
This class holds the fields of Persian date, i.e., the Persian year,
month, and day.
uses this class to
set/get the Persian date.
SimplePersianCalendar
Constructor Summary | |
---|---|
DateFields()
Constructs a DateFields object with the date fields initialized to 0. |
|
DateFields(int year,
int month,
int day)
Constructs a DateFields object with the given date fields. |
Method Summary | |
---|---|
int |
getDay()
Accessor method to get the value of day. |
int |
getMonth()
Accessor method to get the value of month. |
int |
getYear()
Accessor method to get the value of year. |
void |
setDay(int day)
Accessor method to assign a new value to day. |
void |
setMonth(int month)
Accessor method to assign a new value to month. |
void |
setYear(int year)
Accessor method to assign a new value to year. |
java.lang.String |
toString()
This method returns a usable string representation of this object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DateFields()
DateFields
object with the date fields initialized to 0.
public DateFields(int year, int month, int day)
DateFields
object with the given date fields.
year
- the Persian year.month
- the Persian month (zero-based).day
- the Persian day of month.Method Detail |
---|
public void setYear(int year)
year
- The new value to be assigned to year.public int getYear()
public void setMonth(int month)
month
- The new value to be assigned to month.public int getMonth()
public void setDay(int day)
day
- The new value to be assigned to day.public int getDay()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |