Uses of Class
javax.time.calendar.PeriodField
Packages that use PeriodField
Package
Description
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
-
Uses of PeriodField in javax.time.calendar
Classes in javax.time.calendar that implement interfaces with type arguments of type PeriodFieldModifier and TypeClassDescriptionfinal classA period of time measured using a single unit, such as '3 Days' or '65 Seconds'.final classA period of time measured using a number of different units, such as '3 Months, 4 Days and 7 Hours'.Methods in javax.time.calendar that return PeriodFieldModifier and TypeMethodDescriptionPeriodField.abs()Returns a copy of this period with a positive amount.PeriodField.dividedBy(long divisor) Returns a copy of this period with the amount divided by the specified divisor.PeriodFields.get(PeriodUnit unit) Gets the period for the specified unit.PeriodUnit.getEquivalentPeriod(PeriodUnit requiredUnit) Gets the period in the specified unit that is equivalent to this unit.PeriodField.minus(long amount) Returns a copy of this period with the specified period subtracted.PeriodField.minus(PeriodField period) Returns a copy of this period with the specified period subtracted.PeriodField.multipliedBy(long scalar) Returns a copy of this period with the amount multiplied by the specified scalar.PeriodField.negated()Returns a copy of this period with the amount negated.static PeriodFieldPeriodField.of(long amount, PeriodUnit unit) Obtains aPeriodFieldfrom an amount and unit.PeriodField.plus(long amount) Returns a copy of this period with the specified period added.PeriodField.plus(PeriodField period) Returns a copy of this period with the specified period added.PeriodField.remainder(long divisor) Returns a copy of this period with the amount as the remainder following division by the specified divisor.PeriodField.toEquivalent(PeriodUnit requiredUnit) Converts this period to an equivalent in the specified unit.PeriodField.toEquivalent(PeriodUnit... requiredUnits) Converts this period to an equivalent in one of the units specified.PeriodFields.toTotal(PeriodUnit unit) Totals this period in terms of a single unit.PeriodField.withAmount(long amount) Returns a copy of this period with a different amount of time.PeriodField.withUnit(PeriodUnit unit) Returns a copy of this period with a different unit.Methods in javax.time.calendar that return types with arguments of type PeriodFieldModifier and TypeMethodDescriptionPeriodUnit.getEquivalentPeriods()Gets the periods that are equivalent to this unit.PeriodFields.iterator()Iterates through all the single-unit periods in this period.PeriodFields.toMap()Returns aMapequivalent to this period.Methods in javax.time.calendar with parameters of type PeriodFieldModifier and TypeMethodDescriptionintPeriodField.compareTo(PeriodField otherPeriod) Compares this period to the specified period.PeriodField.minus(PeriodField period) Returns a copy of this period with the specified period subtracted.static PeriodFieldsPeriodFields.of(PeriodField period) Obtains aPeriodFieldsfrom a single-unit period.static PeriodFieldsPeriodFields.of(PeriodField... periods) Obtains aPeriodFieldsfrom an array of single-unit periods.PeriodField.plus(PeriodField period) Returns a copy of this period with the specified period added.PeriodFields.remainder(PeriodField period) Returns a copy of this period with the modular division remainder of each field calculated with respect to the specified period.Constructors in javax.time.calendar with parameters of type PeriodFieldModifierConstructorDescriptionprotectedPeriodUnit(String name, PeriodField equivalentPeriod) Constructor to create a unit that is derived from another smaller unit.