Days
is an immutable period that can only store days. It does not store years, months or hours for example. As such it is a type-safe way of representing a number of days in an application.
The number of days is set in the constructor, and may be queried using getDays()
. Basic mathematical operations are provided - plus()
, minus()
, multipliedBy()
and dividedBy()
.
Days
is thread-safe and immutable.
@author Stephen Colebourne
@since 1.4
|
|
|
|
|
|
|
|
|
|