当前页面:
在线文档首页 >
JBoss JBPM 3.1.3 API 英文版文档
Duration (jbpm-3.1.3) - JBoss JBPM 3.1.3 API 英文版文档
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.1.3