static Interval |
Interval.between(Temporal startInclusive,
Temporal endExclusive) |
Obtains an instance consisting of the amount of time between two temporals.
|
static Interval |
Interval.from(TemporalAmount amount) |
Obtains an instance from a temporal amount.
|
Interval |
Interval.minus(TemporalAmount amountToAdd) |
Returns a copy of this amount with the specified amount subtracted.
|
Interval |
Interval.multipliedBy(int scalar) |
Returns an instance with the amount multiplied by the specified scalar.
|
Interval |
Interval.negated() |
Returns an instance with the amount negated.
|
Interval |
Interval.normalizedStandardDays() |
Returns a copy of this instance with the days and duration normalized using the standard day of 24 hours.
|
Interval |
Interval.normalizedYears() |
Returns a copy of this instance with the years and months exactly normalized.
|
static Interval |
Interval.of(Duration duration) |
Obtains an instance based on a duration.
|
static Interval |
Interval.of(Period period) |
Obtains an instance based on a period.
|
static Interval |
Interval.of(Period period,
Duration duration) |
Obtains an instance based on a period and duration.
|
static Interval |
Interval.parse(CharSequence text) |
Obtains an instance from a text string such as PnYnMnDTnHnMnS .
|
Interval |
Interval.plus(TemporalAmount amountToAdd) |
Returns a copy of this amount with the specified amount added.
|
Interval |
Interval.withDuration(Duration duration) |
Returns a copy of this period-duration with a different duration.
|
Interval |
Interval.withPeriod(Period period) |
Returns a copy of this period-duration with a different period.
|