Example usage for Java org.joda.time MutablePeriod fields, constructors, methods, implement or subclass
The text is from its open source code.
MutablePeriod() Creates a zero-length period using the standard period type. | |
MutablePeriod(PeriodType type) Creates a zero-length period using the specified period type. | |
MutablePeriod(long duration) Creates a period from the given millisecond duration using the standard set of fields. | |
MutablePeriod(Object period) Creates a period by converting or copying from another object. |
void | add(ReadablePeriod period) Adds a period to this one by adding each field in turn. |
void | add(ReadableInterval interval) Adds an interval to this one by dividing the interval into fields and calling #add(ReadablePeriod) . |
void | add(ReadableDuration duration) Adds a duration to this one by dividing the duration into fields and calling #add(ReadablePeriod) . |
void | add(long duration) Adds a millisecond duration to this one by dividing the duration into fields and calling #add(ReadablePeriod) . |
int | getDays() Gets the days field part of the period. |
int | getHours() Gets the hours field part of the period. |
int | getMillis() Gets the millis field part of the period. |
int | getMinutes() Gets the minutes field part of the period. |
int | getMonths() Gets the months field part of the period. |
int | getSeconds() Gets the seconds field part of the period. |
int | getValue(int index) Gets the value at the specified index. |
int | getWeeks() Gets the weeks field part of the period. |
int | getYears() Gets the years field part of the period. |
MutablePeriod | parse(String str) Parses a MutablePeriod from the specified string. |
void | setDays(int days) Sets the number of days of the period. |
void | setHours(int hours) Sets the number of hours of the period. |
void | setMillis(int millis) Sets the number of millis of the period. |
void | setMinutes(int minutes) Sets the number of minutes of the period. |
void | setMonths(int months) Sets the number of months of the period. |
void | setSeconds(int seconds) Sets the number of seconds of the period. |
void | setValue(int index, int value) Sets the value of one of the fields by index. |
void | setWeeks(int weeks) Sets the number of weeks of the period. |
void | setYears(int years) Sets the number of years of the period. |
int | size() Gets the number of fields that this period supports. |
Period | toPeriod() Get this period as an immutable Period object. |
String | toString() Gets the value as a String in the ISO8601 duration format. |