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