Uses of Class
javax.time.calendar.PeriodUnit
Packages that use PeriodUnit
Package
Description
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
Provides classes representing dates and times in alternate calendar systems.
-
Uses of PeriodUnit in javax.time.calendar
Subclasses of PeriodUnit in javax.time.calendarModifier and TypeClassDescription(package private) static final classSingle unit subclass, which means fewer classes to load at startup.Classes in javax.time.calendar that implement interfaces with type arguments of type PeriodUnitModifier and TypeClassDescriptionclassA unit of time for measuring a period, such as 'Days' or 'Minutes'.Fields in javax.time.calendar declared as PeriodUnitModifier and TypeFieldDescriptionprivate final PeriodUnitCalendricalRule.periodRangeThe period range, not null.private final PeriodUnitCalendricalRule.periodUnitThe period unit, not null.private final PeriodUnitPeriodField.unitThe unit the period is measured in.private static final PeriodUnit[]Period.UNITSThe ISO period units, trusted to not be altered.Fields in javax.time.calendar with type parameters of type PeriodUnitModifier and TypeFieldDescriptionprivate final TreeMap<PeriodUnit, PeriodField> PeriodFields.unitFieldMapThe map of periods.Methods in javax.time.calendar that return PeriodUnitModifier and TypeMethodDescriptionPeriodUnit.getBaseUnit()Gets the base unit of this unit.CalendricalRule.getPeriodRange()Gets the range that the rule is bound by.CalendricalRule.getPeriodUnit()Gets the unit that the rule is measured in.PeriodField.getUnit()Gets the unit of this period.static PeriodUnitISOChronology.period12Hours()Gets the period unit for twelve hours, as used by AM/PM.static PeriodUnitISOChronology.period24Hours()Gets the period unit for twenty-four hours, that is often treated as a day.static PeriodUnitISOChronology.periodCenturies()Gets the period unit for centuries of 100 years.static PeriodUnitISOChronology.periodDays()Gets the period unit for days.static PeriodUnitISOChronology.periodDecades()Gets the period unit for decades of 10 years.static PeriodUnitISOChronology.periodEras()Gets the period unit for eras.static PeriodUnitISOChronology.periodHours()Gets the period unit for hours of 60 minutes.static PeriodUnitISOChronology.periodMicros()Gets the period unit for microseconds.static PeriodUnitISOChronology.periodMillennia()Gets the period unit for millennia of 1000 years.static PeriodUnitISOChronology.periodMillis()Gets the period unit for milliseconds.static PeriodUnitISOChronology.periodMinutes()Gets the period unit for minutes of 60 seconds.static PeriodUnitISOChronology.periodMonths()Gets the period unit for months.static PeriodUnitISOChronology.periodNanos()Gets the period unit for nanoseconds.static PeriodUnitISOChronology.periodQuarters()Gets the period unit for quarters of 3 months.static PeriodUnitISOChronology.periodSeconds()Gets the period unit for seconds.static PeriodUnitISOChronology.periodWeekBasedYears()Gets the period unit for week-based-years.static PeriodUnitISOChronology.periodWeeks()Gets the period unit for weeks of 7 days.static PeriodUnitISOChronology.periodYears()Gets the period unit for years of 12 months.Methods in javax.time.calendar that return types with arguments of type PeriodUnitModifier and TypeMethodDescriptionprivate TreeMap<PeriodUnit, PeriodField> PeriodFields.clonedMap()Clone the internal data storage map.private static TreeMap<PeriodUnit, PeriodField> PeriodFields.createMap()Creates a new empty map.PeriodFields.toMap()Returns aMapequivalent to this period.Methods in javax.time.calendar with parameters of type PeriodUnitModifier and TypeMethodDescriptionintISOChronology.Unit.compareTo(PeriodUnit other) intPeriodUnit.compareTo(PeriodUnit other) Compares this unit to another.booleanPeriodFields.contains(PeriodUnit unit) Checks whether this period contains an amount for the unit.PeriodFields.get(PeriodUnit unit) Gets the period for the specified unit.longPeriodFields.getAmount(PeriodUnit unit) Gets the amount of this period for the specified unit.intPeriodFields.getAmountInt(PeriodUnit unit) Gets the amount of this period for the specified unit converted to anint.PeriodUnit.getEquivalentPeriod(PeriodUnit requiredUnit) Gets the period in the specified unit that is equivalent to this unit.booleanPeriodUnit.isConvertibleTo(PeriodUnit unit) Checks whether this unit can be converted to the specified unit.PeriodFields.minus(long amount, PeriodUnit unit) Returns a copy of this period with the specified period subtracted.PeriodFields.normalizedTo(PeriodUnit... units) Returns a copy of this period with the amounts normalized to the specified units.static PeriodPeriod.of(int amount, PeriodUnit unit) Obtains aPeriodfrom an amount and unit.static PeriodFieldPeriodField.of(long amount, PeriodUnit unit) Obtains aPeriodFieldfrom an amount and unit.static PeriodFieldsPeriodFields.of(long amount, PeriodUnit unit) Obtains aPeriodFieldsfrom an amount and unit.PeriodFields.plus(long amount, PeriodUnit unit) Returns a copy of this period with the specified period added.PeriodFields.retain(PeriodUnit... units) Returns a copy of this period with the specified units retained.PeriodFields.retainConvertible(PeriodUnit... units) Returns a copy of this period with only those units that can be converted to the specified units.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.toEquivalent(PeriodUnit... units) Converts this period to one containing only the units specified.PeriodFields.toTotal(PeriodUnit unit) Totals this period in terms of a single unit.PeriodFields.with(long amount, PeriodUnit unit) Returns a copy of this period with the specified amount for the unit.PeriodFields.without(PeriodUnit unit) Returns a copy of this period with the specified unit removed.PeriodField.withUnit(PeriodUnit unit) Returns a copy of this period with a different unit.Method parameters in javax.time.calendar with type arguments of type PeriodUnitModifier and TypeMethodDescription(package private) static PeriodFieldsPeriodFields.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 PeriodUnitModifierConstructorDescriptionprotectedCalendricalRule(Class<T> reifiedClass, Chronology chronology, String name, PeriodUnit periodUnit, PeriodUnit periodRange) Constructor used to create a rule.protectedDateTimeFieldRule(Class<T> reifiedClass, Chronology chronology, String name, PeriodUnit periodUnit, PeriodUnit periodRange, int minimumValue, int maximumValue) Constructor.protectedDateTimeFieldRule(Class<T> reifiedClass, Chronology chronology, String name, PeriodUnit periodUnit, PeriodUnit periodRange, int minimumValue, int maximumValue, boolean hasText) Constructor.privatePeriodField(long amount, PeriodUnit unit) Constructor.privateRule(int ordinal, String name, PeriodUnit periodUnit, PeriodUnit periodRange, int minimumValue, int maximumValue, int smallestMaximum) Constructor parameters in javax.time.calendar with type arguments of type PeriodUnitModifierConstructorDescriptionprivatePeriodFields(TreeMap<PeriodUnit, PeriodField> periodMap) Constructs an instance using a pre-built map. -
Uses of PeriodUnit in javax.time.i18n
Subclasses of PeriodUnit in javax.time.i18nModifier and TypeClassDescriptionprivate static final classUnit class for months.private static final classUnit class for years.private static final classUnit class for months.private static final classUnit class for years.private static final classUnit class for months.private static final classUnit class for years.Fields in javax.time.i18n declared as PeriodUnitModifier and TypeFieldDescriptionprivate static final PeriodUnitCopticChronology.MONTHSPeriod unit for months.private static final PeriodUnitHistoricChronology.MONTHSPeriod unit for months.private static final PeriodUnitJulianChronology.MONTHSPeriod unit for months.private static final PeriodUnitCopticChronology.YEARSPeriod unit for years.private static final PeriodUnitHistoricChronology.YEARSPeriod unit for years.private static final PeriodUnitJulianChronology.YEARSPeriod unit for years.Methods in javax.time.i18n that return PeriodUnitModifier and TypeMethodDescriptionstatic PeriodUnitCopticChronology.periodDays()Gets the period unit for days.static PeriodUnitHistoricChronology.periodDays()Gets the period unit for days.static PeriodUnitJulianChronology.periodDays()Gets the period unit for days.static PeriodUnitHistoricChronology.periodEras()Gets the period unit for eras.static PeriodUnitCopticChronology.periodMonths()Gets the period unit for months.static PeriodUnitHistoricChronology.periodMonths()Gets the period unit for months.static PeriodUnitJulianChronology.periodMonths()Gets the period unit for months.static PeriodUnitCopticChronology.periodWeeks()Gets the period unit for weeks.static PeriodUnitHistoricChronology.periodWeeks()Gets the period unit for weeks.static PeriodUnitJulianChronology.periodWeeks()Gets the period unit for weeks.static PeriodUnitCopticChronology.periodYears()Gets the period unit for years.static PeriodUnitHistoricChronology.periodYears()Gets the period unit for years.static PeriodUnitJulianChronology.periodYears()Gets the period unit for years.