Example usage for Java org.apache.wicket.util.time Duration fields, constructors, methods, implement or subclass
The text is from its open source code.
Duration | MAXIMUM Constant for maximum duration. |
Duration | NONE Constant for no duration. |
Duration | ONE_DAY Constant for one day. |
Duration | ONE_HOUR Constant for one hour. |
Duration | ONE_SECOND Constant for one second. |
Duration | ONE_WEEK Constant for one week. |
Duration | add(final Duration duration) Adds a given Duration to this Duration . |
Duration | days(final double days) Retrieves the Duration based on days. |
Duration | days(final int days) Retrieves the Duration based on days. |
Duration | elapsed(final Time start) Calculates the amount of time elapsed since start time. |
Duration | hours(final double hours) Retrieves the Duration based on hours. |
Duration | hours(final int hours) Retrieves the Duration based on hours. |
Duration | milliseconds(final double milliseconds) Retrieves the Duration based on milliseconds. |
Duration | milliseconds(final long milliseconds) Retrieves the Duration based on milliseconds. |
Duration | minutes(final double minutes) Retrieves the Duration based on minutes. |
Duration | minutes(final int minutes) Retrieves the Duration based on minutes. |
Duration | seconds(final double seconds) Retrieves the Duration based on seconds. |
Duration | seconds(final int seconds) Retrieves the Duration based on seconds. |
double | seconds() Retrieves the number of seconds of the current Duration . |
String | toString() Retrieves the String representation of this Duration in days, hours, minutes, seconds or milliseconds, as appropriate. |
String | toString(final Locale locale) Retrieves the String representation of this Duration in days, hours, minutes, seconds or milliseconds, as appropriate. |
Duration | valueOf(final long time) Retrieves the given long as a Duration . |
Duration | valueOf(final String string) Converts the given String to a new Duration object. |