public class Duration
extends java.lang.Object
Constructor and Description |
---|
Duration()
Creates a 0.0 second duration.
|
Duration(double seconds)
Creates a seconds long duration.
|
Duration(float seconds)
Creates a seconds long duration.
|
Modifier and Type | Method and Description |
---|---|
Duration |
add(Duration increment)
Return a new Duration which is increment larger than this Duration.
|
double |
toSeconds()
Return the length of this duration.
|
java.lang.String |
toString() |