public class DateChange extends Object
Modifier and Type | Field and Description |
---|---|
int |
days
The number of days difference.
|
int |
months
The number of months difference.
|
int |
totalDays
If this is used, then the years, months and days values are ignored, when passing
this Object as a parameter for changing a date.
|
int |
years
The number of years difference.
|
Constructor and Description |
---|
DateChange() |
Modifier and Type | Method and Description |
---|---|
boolean |
isNegative()
This is only valid when used to calculate the difference between two dates.
|
DateChange |
set(int totalDays)
Set the totalDays.
|
DateChange |
set(int years,
int months,
int days)
Set the years, months and days.
|
String |
toString()
Return a String representation of this object.
|
public int years
public int months
public int days
public int totalDays
public boolean isNegative()
public DateChange set(int years, int months, int days)
public DateChange set(int totalDays)