Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jbpm.calendar
Class Duration

    java.lang.Object
      org.jbpm.calendar.Duration

All Implemented Interfaces:
  java.io.Serializable

    public class Duration

extends java.lang.Object
implements java.io.Serializable

interpretes textual descriptions of a duration.

Syntax: <quantity> [business] <unit>
Where

- <quantity> is a piece of text that is parsable with `Double.parseDouble(quantity)`.
- <unit> is one of {second, seconds, minute, minutes, hour, hours, day, days, week, weeks, month, months, year, years}.
- And adding the optional indication `business` means that only business hours should be taken into account for this duration.

See Also:
  Serialized Form

Constructor Summary
`Duration(Duration duration)`
`Duration(long milliseconds)`
`Duration(java.lang.String duration)` creates a duration from a textual description.

Method Summary

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Duration

    public Duration(long milliseconds)

### Duration

    public Duration(Duration duration)

### Duration

    public Duration(java.lang.String duration)

  creates a duration from a textual description. syntax: {number} space {unit} where number is parsable to a java.lang.Number and unit is one of
  - second
  - seconds
  - minute
  - minutes
  - hour
  - hours
  - day
  - days
  - week
  - weeks
  - month (30 days)
  - months (30 days)
  - year (355 days)
  - years (355 days)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD