Located in compilation unit of com.
| Modifier and Type | Field and Description |
|---|---|
| protected BasicPeriodBuilderFactory. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public Period | create(long
the duration in milliseconds from the current time
to the target time. A negative duration indicates a time in the past duration)Implements com. |
| public Period | createWithReferenceDate(long
the duration in milliseconds from the referenced time
to the target time. A negative duration indicates a time before the
reference time duration, long the reference date from which to compute the period referenceDate)Implements com. |
| protected abstract Period | |
| public PeriodBuilder | withLocale(String localeName)
Implements com. |
| protected abstract PeriodBuilder | |
| public PeriodBuilder | withTimeZone(TimeZone timeZone)
Implements com. |
| settings | back to summary |
|---|---|
| protected BasicPeriodBuilderFactory. | |
| PeriodBuilderImpl | back to summary |
|---|---|
| protected PeriodBuilderImpl(BasicPeriodBuilderFactory. | |
| approximateDurationOf | back to summary |
|---|---|
| public long approximateDurationOf(TimeUnit unit) | |
| create | back to summary |
|---|---|
| public Period create(long duration) Implements com. Doc from com. Create a period of the given duration using the current system time as the reference time. | |
| createWithReferenceDate | back to summary |
|---|---|
| public Period createWithReferenceDate(long duration, long referenceDate) Implements com. Doc from com. Create a period of the given duration using the provided reference date.
| |
| handleCreate | back to summary |
|---|---|
| protected abstract Period handleCreate(long duration, long referenceDate, boolean inPast) | |
| withLocale | back to summary |
|---|---|
| public PeriodBuilder withLocale(String localeName) Implements com. Doc from com. Returns a new PeriodBuilder that uses the provided locale to determine what periods are available for use.
| |
| withSettings | back to summary |
|---|---|
| protected abstract PeriodBuilder withSettings(BasicPeriodBuilderFactory. | |
| withTimeZone | back to summary |
|---|---|
| public PeriodBuilder withTimeZone(TimeZone timeZone) Implements com. Doc from com. Returns a new PeriodBuilder that computes periods starting at dates in the provided time zone.
| |