org.jbpm.calendar
Class Duration

java.lang.Object
  extended by 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

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