public interface EditableRelativeInstant extends RelativeInstant
The RelativeInstant
ins inmutable, but sometimes is necessary to
edit it. This class is an editable copy of a realtive instant that
cab be edited.
A huge part of the documentation of this class has been retrieved from the joda-time library.
http://joda-time.sourceforge.net
,
https://gvsig.org/web/projects/gvsig-desktop/docs/devel/org-gvsig-sensors/1-0.0/analysis-and-design/detailed-view/time-support/libraries/org-gvsig-timesupport-lib
Modifier and Type | Method and Description |
---|---|
void |
addDays(int days)
Add a number of days to the date.
|
void |
addHours(int hours)
Add a number of hours to the date.
|
void |
addMillis(int millis)
Add a number of millis to the date.
|
void |
addMinutes(int minutes)
Add a number of minutes to the date.
|
void |
addSeconds(int seconds)
Add a number of seconds to the date.
|
void |
addYears(int years)
Add a number of years to the date.
|
void |
setDate(int year,
int monthOfYear,
int dayOfMonth)
Set the date from fields.
|
void |
setTime(int hour,
int minuteOfHour,
int secondOfMinute,
int millisOfSecond)
Set the time from fields.
|
compareTo, getDayOfMonth, getEditableCopy, getHourOfDay, getMillisOfSecond, getMinuteOfDay, getMinuteOfHour, getMonthOfYear, getSecondOfDay, getSecondOfMinute, getYear, toDate, toMillis, toString
getChronology, intersects, isAbsolute, isInstant, isInterval, isRelative
void setTime(int hour, int minuteOfHour, int secondOfMinute, int millisOfSecond)
hour
- the hourminuteOfHour
- the minute of the hoursecondOfMinute
- the second of the minutemillisOfSecond
- the millisecond of the secondIllegalArgumentException
- if the value is invalidvoid setDate(int year, int monthOfYear, int dayOfMonth)
year
- the yearmonthOfYear
- the month of the yeardayOfMonth
- the day of the monthIllegalArgumentException
- if the value is invalidvoid addYears(int years)
years
- the years to addIllegalArgumentException
- if the value is invalidvoid addDays(int days)
days
- the days to addIllegalArgumentException
- if the value is invalidvoid addHours(int hours)
hours
- the hours to addIllegalArgumentException
- if the value is invalidvoid addMinutes(int minutes)
minutes
- the minutes to addIllegalArgumentException
- if the value is invalidvoid addSeconds(int seconds)
seconds
- the seconds to addIllegalArgumentException
- if the value is invalidvoid addMillis(int millis)
millis
- the millis to addIllegalArgumentException
- if the value is invalid