(package private) static PeriodFields |
PeriodFields.create(java.util.TreeMap<PeriodUnit,PeriodField> periodMap) |
Internal factory to create an instance using a pre-built map.
|
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(long amount,
PeriodUnit unit) |
Obtains a PeriodFields from an amount and unit.
|
static PeriodFields |
PeriodFields.of(PeriodField period) |
Obtains a PeriodFields from a single-unit period.
|
static PeriodFields |
PeriodFields.of(PeriodField... periods) |
Obtains a PeriodFields from an array of single-unit periods.
|
static PeriodFields |
PeriodFields.of(PeriodProvider periodProvider) |
Obtains a PeriodFields from a PeriodProvider .
|
static PeriodFields |
PeriodFields.of(Duration duration) |
Obtains a PeriodFields from a Duration based on the standard
durations of seconds and nanoseconds.
|
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 |
Period.toPeriodFields() |
Converts this period to a PeriodFields .
|
PeriodFields |
PeriodField.toPeriodFields() |
Converts this period to a PeriodFields .
|
PeriodFields |
PeriodFields.toPeriodFields() |
Converts this period to a PeriodFields , trivially
returning this .
|
PeriodFields |
PeriodProvider.toPeriodFields() |
Returns an instance of PeriodFields initialized from the
state of this object.
|
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.
|