Uses of Class
javax.time.calendar.PeriodUnit
-
Packages that use PeriodUnit Package Description javax.time.calendar Provides classes to manage the human time scale including date, time, date-time and time-zone representations.javax.time.i18n Provides classes representing dates and times in alternate calendar systems. -
-
Uses of PeriodUnit in javax.time.calendar
Methods in javax.time.calendar that return PeriodUnit Modifier and Type Method Description PeriodUnitPeriodUnit. getBaseUnit()Gets the base unit of this unit.PeriodUnitCalendricalRule. getPeriodRange()Gets the range that the rule is bound by.PeriodUnitCalendricalRule. getPeriodUnit()Gets the unit that the rule is measured in.PeriodUnitPeriodField. 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 PeriodUnit Modifier and Type Method Description SortedMap<PeriodUnit,PeriodField>PeriodFields. toMap()Returns aMapequivalent to this period.Methods in javax.time.calendar with parameters of type PeriodUnit Modifier and Type Method Description intPeriodUnit. compareTo(PeriodUnit other)Compares this unit to another.booleanPeriodFields. contains(PeriodUnit unit)Checks whether this period contains an amount for the unit.PeriodFieldPeriodFields. 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.PeriodFieldPeriodUnit. 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.PeriodFieldsPeriodFields. minus(long amount, PeriodUnit unit)Returns a copy of this period with the specified period subtracted.PeriodFieldsPeriodFields. 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.PeriodFieldsPeriodFields. plus(long amount, PeriodUnit unit)Returns a copy of this period with the specified period added.PeriodFieldsPeriodFields. retain(PeriodUnit... units)Returns a copy of this period with the specified units retained.PeriodFieldsPeriodFields. retainConvertible(PeriodUnit... units)Returns a copy of this period with only those units that can be converted to the specified units.PeriodFieldPeriodField. toEquivalent(PeriodUnit requiredUnit)Converts this period to an equivalent in the specified unit.PeriodFieldPeriodField. toEquivalent(PeriodUnit... requiredUnits)Converts this period to an equivalent in one of the units specified.PeriodFieldsPeriodFields. toEquivalent(PeriodUnit... units)Converts this period to one containing only the units specified.PeriodFieldPeriodFields. toTotal(PeriodUnit unit)Totals this period in terms of a single unit.PeriodFieldsPeriodFields. with(long amount, PeriodUnit unit)Returns a copy of this period with the specified amount for the unit.PeriodFieldsPeriodFields. without(PeriodUnit unit)Returns a copy of this period with the specified unit removed.PeriodFieldPeriodField. withUnit(PeriodUnit unit)Returns a copy of this period with a different unit.Constructors in javax.time.calendar with parameters of type PeriodUnit Constructor Description CalendricalRule(Class<T> reifiedClass, Chronology chronology, String name, PeriodUnit periodUnit, PeriodUnit periodRange)Constructor used to create a rule.DateTimeFieldRule(Class<T> reifiedClass, Chronology chronology, String name, PeriodUnit periodUnit, PeriodUnit periodRange, int minimumValue, int maximumValue)Constructor.DateTimeFieldRule(Class<T> reifiedClass, Chronology chronology, String name, PeriodUnit periodUnit, PeriodUnit periodRange, int minimumValue, int maximumValue, boolean hasText)Constructor. -
Uses of PeriodUnit in javax.time.i18n
Methods in javax.time.i18n that return PeriodUnit Modifier and Type Method Description static 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.
-