|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.oracle.common.util.Duration
com.tangosol.coherence.config.unit.Seconds
public class Seconds
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.oracle.common.util.Duration |
---|
com.oracle.common.util.Duration.Magnitude |
Constructor Summary | |
---|---|
Seconds(com.oracle.common.util.Duration d) Constructs a Seconds based on another Duration . |
|
Seconds(int c) Constructs a Seconds representing a Duration measured in seconds. |
|
Seconds(java.lang.String s) Constructs a Seconds representing a Duration measured in seconds. |
Method Summary | |
---|---|
long |
get() Obtain the Duration in units of seconds. |
Methods inherited from class com.oracle.common.util.Duration |
---|
as, equals, getNanos, hashCode, toString, toString |
Constructor Detail |
---|
public Seconds(com.oracle.common.util.Duration d)
Seconds
based on another Duration
.
d
- the Duration
public Seconds(int c)
Seconds
representing a Duration
measured in seconds.
c
- the number of secondspublic Seconds(java.lang.String s)
Seconds
representing a Duration
measured in seconds.
s
- the number of seconds or other duration when magnitudes are specifiedDuration.Duration(String, Magnitude)
Method Detail |
---|
public long get()
Duration
in units of seconds.Duration
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |