public class DefaultEditableRelativeInstant extends DefaultRelativeInstant implements EditableRelativeInstant
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.
|
java.lang.String |
toString() |
clone, compareTo, equals, getChronology, getDayOfMonth, getDayOfWeek, getEditableCopy, getHourOfDay, getMillisOfSecond, getMinuteOfDay, getMinuteOfHour, getMonthOfYear, getSecondOfDay, getSecondOfMinute, getWeekOfWeekyear, getYear, intersects, isAbsolute, isAfter, isBefore, isEqual, isInstant, isInterval, isRelative, toDate, toMillis, toString
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compareTo, getDayOfMonth, getEditableCopy, getHourOfDay, getMillisOfSecond, getMinuteOfDay, getMinuteOfHour, getMonthOfYear, getSecondOfDay, getSecondOfMinute, getYear, toDate, toMillis
getChronology, intersects, isAbsolute, isInstant, isInterval, isRelative
clone, cloneQuietly, cloneQuietly
public void setTime(int hour, int minuteOfHour, int secondOfMinute, int millisOfSecond)
EditableRelativeInstant
setTime
in interface EditableRelativeInstant
hour
- the hourminuteOfHour
- the minute of the hoursecondOfMinute
- the second of the minutemillisOfSecond
- the millisecond of the secondpublic void setDate(int year, int monthOfYear, int dayOfMonth)
EditableRelativeInstant
setDate
in interface EditableRelativeInstant
year
- the yearmonthOfYear
- the month of the yeardayOfMonth
- the day of the monthpublic void addYears(int years)
EditableRelativeInstant
addYears
in interface EditableRelativeInstant
years
- the years to addpublic void addDays(int days)
EditableRelativeInstant
addDays
in interface EditableRelativeInstant
days
- the days to addpublic void addHours(int hours)
EditableRelativeInstant
addHours
in interface EditableRelativeInstant
hours
- the hours to addpublic void addMinutes(int minutes)
EditableRelativeInstant
addMinutes
in interface EditableRelativeInstant
minutes
- the minutes to addpublic void addSeconds(int seconds)
EditableRelativeInstant
addSeconds
in interface EditableRelativeInstant
seconds
- the seconds to addpublic void addMillis(int millis)
EditableRelativeInstant
addMillis
in interface EditableRelativeInstant
millis
- the millis to addpublic java.lang.String toString()
toString
in class DefaultRelativeInstant