Uses of Class
javax.time.calendar.PeriodField
-
Packages that use PeriodField Package Description javax.time.calendar 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 PeriodField Modifier and Type Field Description private java.util.List<PeriodField>PeriodUnit. equivalentPeriodsThe cache of periods equivalent to this unit, not null.private java.util.TreeMap<PeriodUnit,PeriodField>PeriodFields. unitFieldMapThe map of periods.Methods in javax.time.calendar that return PeriodField Modifier and Type Method Description PeriodFieldPeriodField. abs()Returns a copy of this period with a positive amount.PeriodFieldPeriodField. dividedBy(long divisor)Returns a copy of this period with the amount divided by the specified divisor.PeriodFieldPeriodFields. get(PeriodUnit unit)Gets the period for the specified unit.PeriodFieldPeriodUnit. getEquivalentPeriod(PeriodUnit requiredUnit)Gets the period in the specified unit that is equivalent to this unit.PeriodFieldPeriodField. minus(long amount)Returns a copy of this period with the specified period subtracted.PeriodFieldPeriodField. minus(PeriodField period)Returns a copy of this period with the specified period subtracted.PeriodFieldPeriodField. multipliedBy(long scalar)Returns a copy of this period with the amount multiplied by the specified scalar.PeriodFieldPeriodField. negated()Returns a copy of this period with the amount negated.static PeriodFieldPeriodField. of(long amount, PeriodUnit unit)Obtains aPeriodFieldfrom an amount and unit.PeriodFieldPeriodField. plus(long amount)Returns a copy of this period with the specified period added.PeriodFieldPeriodField. plus(PeriodField period)Returns a copy of this period with the specified period added.PeriodFieldPeriodField. remainder(long divisor)Returns a copy of this period with the amount as the remainder following division by the specified divisor.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.PeriodFieldPeriodFields. toTotal(PeriodUnit unit)Totals this period in terms of a single unit.PeriodFieldPeriodField. withAmount(long amount)Returns a copy of this period with a different amount of time.PeriodFieldPeriodField. 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 PeriodField Modifier and Type Method Description private static java.util.List<PeriodField>PeriodUnit. buildEquivalentPeriods(PeriodField equivalentPeriod)Helper method for constructors to built the equivalent periods.private java.util.TreeMap<PeriodUnit,PeriodField>PeriodFields. clonedMap()Clone the internal data storage map.private static java.util.TreeMap<PeriodUnit,PeriodField>PeriodFields. createMap()Creates a new empty map.java.util.List<PeriodField>PeriodUnit. getEquivalentPeriods()Gets the periods that are equivalent to this unit.java.util.Iterator<PeriodField>PeriodFields. iterator()Iterates through all the single-unit periods in this period.java.util.SortedMap<PeriodUnit,PeriodField>PeriodFields. toMap()Returns aMapequivalent to this period.Methods in javax.time.calendar with parameters of type PeriodField Modifier and Type Method Description private static java.util.List<PeriodField>PeriodUnit. buildEquivalentPeriods(PeriodField equivalentPeriod)Helper method for constructors to built the equivalent periods.intPeriodField. compareTo(PeriodField otherPeriod)Compares this period to the specified period.PeriodFieldPeriodField. 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.PeriodFieldPeriodField. plus(PeriodField period)Returns a copy of this period with the specified period added.PeriodFieldsPeriodFields. 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 PeriodField Modifier and Type Method Description (package private) static PeriodFieldsPeriodFields. create(java.util.TreeMap<PeriodUnit,PeriodField> periodMap)Internal factory to create an instance using a pre-built map.Constructors in javax.time.calendar with parameters of type PeriodField Constructor Description PeriodUnit(java.lang.String name, PeriodField equivalentPeriod)Constructor to create a unit that is derived from another smaller unit.PeriodUnit(java.lang.String name, PeriodField equivalentPeriod, Duration estimatedDuration)Constructor used by ISOChronology.Unit(int ordinal, java.lang.String name, PeriodField equivalentPeriod, Duration estimatedDuration)Constructor parameters in javax.time.calendar with type arguments of type PeriodField Constructor Description PeriodFields(java.util.TreeMap<PeriodUnit,PeriodField> periodMap)Constructs an instance using a pre-built map.
-