Java org.joda.time MutablePeriod fields, constructors, methods, implement or subclass

Example usage for Java org.joda.time MutablePeriod fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.joda.time MutablePeriod.

The text is from its open source code.

Constructor

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.

Method

voidadd(ReadablePeriod period)
Adds a period to this one by adding each field in turn.
voidadd(ReadableInterval interval)
Adds an interval to this one by dividing the interval into fields and calling #add(ReadablePeriod) .
voidadd(ReadableDuration duration)
Adds a duration to this one by dividing the duration into fields and calling #add(ReadablePeriod) .
voidadd(long duration)
Adds a millisecond duration to this one by dividing the duration into fields and calling #add(ReadablePeriod) .
intgetDays()
Gets the days field part of the period.
intgetHours()
Gets the hours field part of the period.
intgetMillis()
Gets the millis field part of the period.
intgetMinutes()
Gets the minutes field part of the period.
intgetMonths()
Gets the months field part of the period.
intgetSeconds()
Gets the seconds field part of the period.
intgetValue(int index)
Gets the value at the specified index.
intgetWeeks()
Gets the weeks field part of the period.
intgetYears()
Gets the years field part of the period.
MutablePeriodparse(String str)
Parses a MutablePeriod from the specified string.
voidsetDays(int days)
Sets the number of days of the period.
voidsetHours(int hours)
Sets the number of hours of the period.
voidsetMillis(int millis)
Sets the number of millis of the period.
voidsetMinutes(int minutes)
Sets the number of minutes of the period.
voidsetMonths(int months)
Sets the number of months of the period.
voidsetSeconds(int seconds)
Sets the number of seconds of the period.
voidsetValue(int index, int value)
Sets the value of one of the fields by index.
voidsetWeeks(int weeks)
Sets the number of weeks of the period.
voidsetYears(int years)
Sets the number of years of the period.
intsize()
Gets the number of fields that this period supports.
PeriodtoPeriod()
Get this period as an immutable Period object.
StringtoString()
Gets the value as a String in the ISO8601 duration format.