public class TimeInterval extends Object
Constructor and Description |
---|
TimeInterval(long milliseconds) |
TimeInterval(String input)
Creates a TimeInterval for a string.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
milliseconds() |
long |
seconds() |
String |
toDescription()
Converts the milliseconds back into a string (compatible with
TimeInterval(String) ). |
String |
toString() |
public TimeInterval(String input)
input
- the string specifying the amount of time in the periodpublic TimeInterval(long milliseconds)
public long milliseconds()
public long seconds()
public String toDescription()
TimeInterval(String)
).${project.version} - Copyright © 2003-2015 The Apache Software Foundation.