addTo(Temporal temporal) | This method adds this period to the specified temporal object. |
between(LocalDate startDateInclusive, LocalDate endDateExclusive) | This method obtains a Period consisting of the number of years, months, and days between two dates. |
equals(Object obj) | This method checks if this period is equal to another period. |
from(TemporalAmount amount) | This method obtains an instance of Period from a temporal amount. |
get(TemporalUnit unit) | This method gets the value of the requested unit. |
getChronology() | This method gets the chronology of this period, which is the ISO calendar system. |
getDays() | This method gets the number of days of this period. |
getMonths() | This method gets the number of months of this period. |
getUnits() | This method gets the set of units supported by this period. |
getYears() | This method gets the number of years of this period. |
hashCode() | This method returns a hash code for this period. |
isNegative() | This method checks if any of the three units of this period are negative. |
isZero() | This method checks if all three units of this period are zero. |
minus(TemporalAmount amountToSubtract) | This method returns a copy of this period with the specified period subtracted. |
minusDays(long daysToSubtract) | This method returns a copy of this period with the specified days subtracted. |
minusMonths(long monthsToSubtract) | This method returns a copy of this period with the specified months subtracted. |
minusYears(long yearsToSubtract) | This method returns a copy of this period with the specified years subtracted. |
multipliedBy(int scalar) | This method returns a new instance with each element in this period multiplied by the specified scalar. |
negated() | This method returns a new instance with each amount in this period negated. |
normalized() | This method returns a copy of this period with the years and months normalized. |
of(int years, int months, int days) | This method obtains a Period representing a number of years, months, and days. |
ofDays(int days) | This method obtains a Period representing a number of days. |
ofMonths(int months) | This method obtains a Period representing a number of months. |
ofWeeks(int weeks) | This method obtains a Period representing a number of weeks. |
ofYears(int years) | This method obtains a Period representing a number of years. |
parse(CharSequence text) | This method obtains a Period from a text string such as PnYnMnD. |
plus(TemporalAmount amountToAdd) | This method returns a copy of this period with the specified period added. |
plusDays(long daysToAdd) | This method returns a copy of this period with the specified days added. |
plusMonths(long monthsToAdd) | This method returns a copy of this period with the specified months added. |
plusYears(long yearsToAdd) | This method returns a copy of this period with the specified years added. |
subtractFrom(Temporal temporal) | This method subtracts this period from the specified temporal object. |
toString() | This method outputs this period as a String, such as P6Y3M1D. |
toTotalMonths() | This method gets the total number of months in this period. |
withDays(int days) | This method returns a copy of this period with the specified amount of days. |
withMonths(int months) | This method returns a copy of this period with the specified amount of months. |
withYears(int years) | This method returns a copy of this period with the specified amount of years. |