public class DateFields extends Object
SimplePersianCalendar uses this class to
set/get the Persian date.| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
toString()
This method returns a usable string representation of this object.
|
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.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()
Copyright © 2015. All Rights Reserved.