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