Uses of Class
com.ibm.icu.impl.duration.Period

Packages that use Period
Package
Description
 
  • Uses of Period in com.ibm.icu.impl.duration

    Methods in com.ibm.icu.impl.duration that return Period
    Modifier and Type
    Method
    Description
    Period.and(float count, TimeUnit unit)
    Set the given unit to have the given count.
    Period.at()
    Mark the duration as being at the defined duration.
    static Period
    Period.at(float count, TimeUnit unit)
    Constructs 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) Period
    BasicPeriodBuilderFactory.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 Period
    BasicDurationFormatter.doBuild(long duration, long referenceDate)
     
    protected Period
    FixedUnitBuilder.handleCreate(long duration, long referenceDate, boolean inPast)
     
    protected Period
    MultiUnitBuilder.handleCreate(long duration, long referenceDate, boolean inPast)
     
    protected Period
    OneOrTwoUnitBuilder.handleCreate(long duration, long referenceDate, boolean inPast)
     
    protected abstract Period
    PeriodBuilderImpl.handleCreate(long duration, long referenceDate, boolean inPast)
     
    protected Period
    SingleUnitBuilder.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 Period
    Period.lessThan(float count, TimeUnit unit)
    Constructs 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 Period
    Period.moreThan(float count, TimeUnit unit)
    Constructs a Period representing a duration more than count units extending into the past.
    Period.omit(TimeUnit unit)
    Mark the given unit as not being set.
    private Period
    Period.setFuture(boolean future)
    Sets whether this defines a future time.
    private Period
    Period.setTimeLimit(byte limit)
    Sets whether this is more than, less than, or 'about' the specified time.
    private Period
    Period.setTimeUnitInternalValue(TimeUnit unit, int value)
    Sets the period to have the provided value, 1/1000 of the unit plus 1.
    private Period
    Period.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 Period
    Modifier and Type
    Method
    Description
    protected String
    BasicDurationFormatter.doFormat(Period period)
     
    boolean
    Period.equals(Period rhs)
    Returns 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.
    BasicPeriodFormatter.format(Period period)
     
    PeriodFormatter.format(Period period)
    Format a Period.