Period |
Period.and(float count,
TimeUnit unit) |
Set the given unit to have the given count.
|
Period |
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.
|
Period |
PeriodBuilder.create(long duration) |
Create a period of the given duration using the current system
time as the reference time.
|
Period |
PeriodBuilderImpl.create(long duration) |
|
(package private) Period |
BasicPeriodBuilderFactory.Settings.createLimited(long duration,
boolean inPast) |
|
Period |
PeriodBuilder.createWithReferenceDate(long duration,
long referenceDate) |
Create a period of the given duration using the provided reference date.
|
Period |
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 |
Period.inFuture() |
Mark the time as being in the future.
|
Period |
Period.inFuture(boolean future) |
Mark the duration as extending into the future if
future is true, and into the past otherwise.
|
Period |
Period.inPast() |
Mark the duration as extending into the past.
|
Period |
Period.inPast(boolean past) |
Mark the duration as extending into the past if
past is true, and into the future otherwise.
|
Period |
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 |
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 |
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.
|