public class Duration extends Object implements ObjectValue
| Constructor and Description |
|---|
Duration()
Default constructor for serialization
|
Duration(Boolean negative,
Boolean elapsed,
Double weeks,
Double days,
Double hours,
Double minutes,
Double seconds,
Double milliseconds)
Constructor with all possible attributes specified.
|
| Modifier and Type | Method and Description |
|---|---|
Double |
getDays()
Get the number of days for this duration.
|
Boolean |
getElapsed()
Indicates this duration represents elapsed time, which ignores non-working time
|
Double |
getHours()
Get the number of hours for this duration.
|
Double |
getMilliseconds()
Get the number of milliseconds for this duration.
|
Double |
getMinutes()
Get the number of minutes for this duration.
|
Boolean |
getNegative()
Get flag indicating whether the lag is negative(true) or positive(false)
|
ObjectValueType |
getObjectType()
"DURATION"
|
Double |
getSeconds()
Get the number of seconds for this duration.
|
Double |
getWeeks()
Get the number of weeks in duration.
|
Duration |
setDays(Double days)
Set the number of days for this duration.
|
Duration |
setElapsed(Boolean elapsed)
Set flag indicating this duration represents elapsed time.
|
Duration |
setHours(Double hours)
Set the number of hours for this duration.
|
Duration |
setMilliseconds(Double milliseconds)
Set the number of milliseconds for this duration.
|
Duration |
setMinutes(Double minutes)
Set the number of minutes for this duration.
|
Duration |
setNegative(Boolean negative)
Set flag indicating whether the lag is negative(true) or positive(false)
|
Duration |
setSeconds(Double seconds)
Set the number of seconds for this duration.
|
Duration |
setWeeks(Double weeks)
Set the number of weeks in duration.
|
public ObjectValueType getObjectType()
getObjectType in interface ObjectValuepublic Boolean getNegative()
public Duration setNegative(Boolean negative)
negative - public Boolean getElapsed()
public Duration setElapsed(Boolean elapsed)
elapsed - public Double getWeeks()
public Duration setWeeks(Double weeks)
weeks - public Double getDays()
public Duration setDays(Double days)
days - public Double getHours()
public Duration setHours(Double hours)
hours - public Double getMinutes()
public Duration setMinutes(Double minutes)
minutes - public Double getSeconds()
public Duration setSeconds(Double seconds)
seconds - public Double getMilliseconds()
Copyright © 2014–2017 Smartsheet. All rights reserved.