Package | Description |
---|---|
javax.time.calendar |
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
|
Modifier and Type | Field and Description |
---|---|
static PeriodFields |
PeriodFields.ZERO
A constant for a period of zero.
|
Modifier and Type | Method and Description |
---|---|
PeriodFields |
PeriodFields.dividedBy(long divisor)
Returns a copy of this period with each amount in this period divided
by the specified value.
|
PeriodFields |
PeriodFields.minus(long amount,
PeriodUnit unit)
Returns a copy of this period with the specified period subtracted.
|
PeriodFields |
PeriodFields.minus(PeriodProvider periodProvider)
Returns a copy of this period with the specified period subtracted.
|
PeriodFields |
PeriodFields.multipliedBy(long scalar)
Returns a copy of this period with each amount in this period multiplied
by the specified scalar.
|
PeriodFields |
PeriodFields.negated()
Returns a copy of this period with each amount in this period negated.
|
PeriodFields |
PeriodFields.normalized()
Returns a copy of this period with the amounts normalized.
|
PeriodFields |
PeriodFields.normalizedTo(PeriodUnit... units)
Returns a copy of this period with the amounts normalized to the specified units.
|
static PeriodFields |
PeriodFields.of(Duration duration)
Obtains a
PeriodFields from a Duration based on the standard
durations of seconds and nanoseconds. |
static PeriodFields |
PeriodFields.of(long amount,
PeriodUnit unit)
Obtains a
PeriodFields from an amount and unit. |
static PeriodFields |
PeriodFields.of(PeriodField... periods)
Obtains a
PeriodFields from an array of single-unit periods. |
static PeriodFields |
PeriodFields.of(PeriodField period)
Obtains a
PeriodFields from a single-unit period. |
static PeriodFields |
PeriodFields.of(PeriodProvider periodProvider)
Obtains a
PeriodFields from a PeriodProvider . |
static PeriodFields |
PeriodFields.ofTotal(PeriodProvider... periodProviders)
Obtains a
PeriodFields by totalling the amounts in a list of
PeriodProvider instances. |
PeriodFields |
PeriodFields.plus(long amount,
PeriodUnit unit)
Returns a copy of this period with the specified period added.
|
PeriodFields |
PeriodFields.plus(PeriodProvider periodProvider)
Returns a copy of this period with the specified period added.
|
PeriodFields |
PeriodFields.remainder(PeriodField period)
Returns a copy of this period with the modular division remainder of each field
calculated with respect to the specified period.
|
PeriodFields |
PeriodFields.retain(PeriodUnit... units)
Returns a copy of this period with the specified units retained.
|
PeriodFields |
PeriodFields.retainConvertible(PeriodUnit... units)
Returns a copy of this period with only those units that can be converted to
the specified units.
|
PeriodFields |
PeriodFields.toEquivalent(PeriodUnit... units)
Converts this period to one containing only the units specified.
|
PeriodFields |
PeriodFields.toPeriodFields()
Converts this period to a
PeriodFields , trivially
returning this . |
PeriodFields |
PeriodField.toPeriodFields()
Converts this period to a
PeriodFields . |
PeriodFields |
PeriodProvider.toPeriodFields()
Returns an instance of
PeriodFields initialized from the
state of this object. |
PeriodFields |
Period.toPeriodFields()
Converts this period to a
PeriodFields . |
PeriodFields |
PeriodFields.with(long amount,
PeriodUnit unit)
Returns a copy of this period with the specified amount for the unit.
|
PeriodFields |
PeriodFields.with(PeriodProvider periodProvider)
Returns a copy of this period with the specified values altered.
|
PeriodFields |
PeriodFields.without(PeriodUnit unit)
Returns a copy of this period with the specified unit removed.
|
PeriodFields |
PeriodFields.withZeroesRemoved()
Returns a copy of this period with all zero amounts removed.
|
Copyright © 2014. All rights reserved.