Interface TemporalAmount
public interface TemporalAmount
An amount of time, such as a
Duration or a Period.-
Method Summary
Modifier and TypeMethodDescriptiontemporalmoved forward by this amount.longget(TemporalUnit unit) The amount ofunitthis holds.getUnits()The units this amount is made of.subtractFrom(Temporal temporal) temporalmoved back by this amount.
-
Method Details
-
get
The amount ofunitthis holds. -
getUnits
List<TemporalUnit> getUnits()The units this amount is made of. -
addTo
-
subtractFrom
-