Uses of Class
com.ibm.icu.impl.duration.Period
Packages that use Period
-
Uses of Period in com.ibm.icu.impl.duration
Methods in com.ibm.icu.impl.duration that return PeriodModifier and TypeMethodDescriptionSet the given unit to have the given count.Period.at()Mark the duration as being at the defined duration.static PeriodConstructs a Period representing a duration of count units extending into the past.PeriodBuilder.create(long duration) Create a period of the given duration using the current system time as the reference time.PeriodBuilderImpl.create(long duration) (package private) PeriodBasicPeriodBuilderFactory.Settings.createLimited(long duration, boolean inPast) PeriodBuilder.createWithReferenceDate(long duration, long referenceDate) Create a period of the given duration using the provided reference date.PeriodBuilderImpl.createWithReferenceDate(long duration, long referenceDate) protected PeriodBasicDurationFormatter.doBuild(long duration, long referenceDate) protected PeriodFixedUnitBuilder.handleCreate(long duration, long referenceDate, boolean inPast) protected PeriodMultiUnitBuilder.handleCreate(long duration, long referenceDate, boolean inPast) protected PeriodOneOrTwoUnitBuilder.handleCreate(long duration, long referenceDate, boolean inPast) protected abstract PeriodPeriodBuilderImpl.handleCreate(long duration, long referenceDate, boolean inPast) protected PeriodSingleUnitBuilder.handleCreate(long duration, long referenceDate, boolean inPast) Period.inFuture()Mark the time as being in the future.Period.inFuture(boolean future) Mark the duration as extending into the future if future is true, and into the past otherwise.Period.inPast()Mark the duration as extending into the past.Period.inPast(boolean past) Mark the duration as extending into the past if past is true, and into the future otherwise.Period.lessThan()Mark the duration as being less than the defined duration.static PeriodConstructs a Period representing a duration less than count units extending into the past.Period.moreThan()Mark the duration as being more than the defined duration.static PeriodConstructs a Period representing a duration more than count units extending into the past.Mark the given unit as not being set.private PeriodPeriod.setFuture(boolean future) Sets whether this defines a future time.private PeriodPeriod.setTimeLimit(byte limit) Sets whether this is more than, less than, or 'about' the specified time.private PeriodPeriod.setTimeUnitInternalValue(TimeUnit unit, int value) Sets the period to have the provided value, 1/1000 of the unit plus 1.private PeriodPeriod.setTimeUnitValue(TimeUnit unit, float value) Set the unit's internal value, converting from float to int.Methods in com.ibm.icu.impl.duration with parameters of type PeriodModifier and TypeMethodDescriptionprotected StringbooleanReturns true if the same units are defined with the same counts, both extend into the future or both into the past, and if the limits (at, more than, less than) are the same.Format a Period.