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
Fields in javax.time.calendar with type parameters of type PeriodFieldModifier and TypeFieldDescriptionprivate final List<PeriodField>
PeriodUnit.equivalentPeriods
The cache of periods equivalent to this unit, not null.private final TreeMap<PeriodUnit,
PeriodField> PeriodFields.unitFieldMap
The map of periods.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 PeriodField
PeriodField.of
(long amount, PeriodUnit unit) Obtains aPeriodField
from 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 TypeMethodDescriptionprivate static List<PeriodField>
PeriodUnit.buildEquivalentPeriods
(PeriodField equivalentPeriod) Helper method for constructors to built the equivalent periods.private TreeMap<PeriodUnit,
PeriodField> PeriodFields.clonedMap()
Clone the internal data storage map.private static TreeMap<PeriodUnit,
PeriodField> PeriodFields.createMap()
Creates a new empty map.PeriodUnit.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 aMap
equivalent to this period.Methods in javax.time.calendar with parameters of type PeriodFieldModifier and TypeMethodDescriptionprivate static List<PeriodField>
PeriodUnit.buildEquivalentPeriods
(PeriodField equivalentPeriod) Helper method for constructors to built the equivalent periods.int
PeriodField.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 PeriodFields
PeriodFields.of
(PeriodField period) Obtains aPeriodFields
from a single-unit period.static PeriodFields
PeriodFields.of
(PeriodField... periods) Obtains aPeriodFields
from 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.Method parameters in javax.time.calendar with type arguments of type PeriodFieldModifier and TypeMethodDescription(package private) static PeriodFields
PeriodFields.create
(TreeMap<PeriodUnit, PeriodField> periodMap) Internal factory to create an instance using a pre-built map.Constructors in javax.time.calendar with parameters of type PeriodFieldModifierConstructorDescriptionprotected
PeriodUnit
(String name, PeriodField equivalentPeriod) Constructor to create a unit that is derived from another smaller unit.(package private)
PeriodUnit
(String name, PeriodField equivalentPeriod, Duration estimatedDuration) Constructor used by ISOChronology.private
Unit
(int ordinal, String name, PeriodField equivalentPeriod, Duration estimatedDuration) Constructor parameters in javax.time.calendar with type arguments of type PeriodFieldModifierConstructorDescriptionprivate
PeriodFields
(TreeMap<PeriodUnit, PeriodField> periodMap) Constructs an instance using a pre-built map.