站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss JBPM 3.0.4 API 英文版文档

Duration (jbpm-3.0.4) - JBoss JBPM 3.0.4 API 英文版文档


org.jbpm.calendar
Class Duration

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



Version : jbpm-3.0.4