Java org.apache.wicket.util.time Duration fields, constructors, methods, implement or subclass

Example usage for Java org.apache.wicket.util.time Duration fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.wicket.util.time Duration.

The text is from its open source code.

Field

DurationMAXIMUM
Constant for maximum duration.
DurationNONE
Constant for no duration.
DurationONE_DAY
Constant for one day.
DurationONE_HOUR
Constant for one hour.
DurationONE_SECOND
Constant for one second.
DurationONE_WEEK
Constant for one week.

Method

Durationadd(final Duration duration)
Adds a given Duration to this Duration.
Durationdays(final double days)
Retrieves the Duration based on days.
Durationdays(final int days)
Retrieves the Duration based on days.
Durationelapsed(final Time start)
Calculates the amount of time elapsed since start time.
Durationhours(final double hours)
Retrieves the Duration based on hours.
Durationhours(final int hours)
Retrieves the Duration based on hours.
Durationmilliseconds(final double milliseconds)
Retrieves the Duration based on milliseconds.
Durationmilliseconds(final long milliseconds)
Retrieves the Duration based on milliseconds.
Durationminutes(final double minutes)
Retrieves the Duration based on minutes.
Durationminutes(final int minutes)
Retrieves the Duration based on minutes.
Durationseconds(final double seconds)
Retrieves the Duration based on seconds.
Durationseconds(final int seconds)
Retrieves the Duration based on seconds.
doubleseconds()
Retrieves the number of seconds of the current Duration.
StringtoString()
Retrieves the String representation of this Duration in days, hours, minutes, seconds or milliseconds, as appropriate.
StringtoString(final Locale locale)
Retrieves the String representation of this Duration in days, hours, minutes, seconds or milliseconds, as appropriate.
DurationvalueOf(final long time)
Retrieves the given long as a Duration.
DurationvalueOf(final String string)
Converts the given String to a new Duration object.