public class Seconds
extends com.oracle.coherence.common.util.Duration
Seconds
is a specialized Duration
whose default constructor
assumes that the specified units of time (when the unit magnitude is not
specified) are seconds.
Note: This class is provided to simplify and support backwards compatibility
during the injection of second-based units of time into appropriate classes.
This class is not designed for general purpose representation
of units of time. For general purpose units of time, please use the Duration
class.
Constructor and Description |
---|
Seconds(com.oracle.coherence.common.util.Duration d)
Constructs a
Seconds based on another Duration . |
Seconds(int c)
Constructs a
Seconds representing a Duration measured in seconds. |
Seconds(String s)
Constructs a
Seconds representing a Duration measured in seconds. |
Modifier and Type | Method and Description |
---|---|
long |
get()
Obtain the
Duration in units of seconds. |